The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-13138

CVE-2025-13138: WP Directory Kit Plugin SQLi Vulnerability

CVE-2025-13138 is a SQL injection flaw in the WP Directory Kit plugin for WordPress that allows unauthenticated attackers to extract sensitive database information. This post covers technical details, affected versions, and mitigation.

Updated: May 11, 2026

CVE-2025-13138 Overview

CVE-2025-13138 is a SQL Injection vulnerability [CWE-89] affecting the WP Directory Kit plugin for WordPress in all versions up to and including 1.4.3. The flaw resides in the columns_search parameter of the select_2_ajax() function. Insufficient escaping of user-supplied input and inadequate query preparation allow unauthenticated attackers to append arbitrary SQL clauses to existing database queries. Successful exploitation enables extraction of sensitive information from the WordPress database.

Critical Impact

Unauthenticated attackers can extract sensitive data — including user credentials, session tokens, and personally identifiable information — directly from the WordPress database over the network.

Affected Products

  • WP Directory Kit plugin for WordPress, all versions through 1.4.3
  • WordPress sites running the vulnerable wpdirectorykit plugin
  • Any site exposing the select_2_ajax() AJAX endpoint to unauthenticated users

Discovery Timeline

  • 2025-11-21 - CVE-2025-13138 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-13138

Vulnerability Analysis

The vulnerability exists in the select_2_ajax() function inside application/controllers/Wdk_frontendajax.php at line 546 of the WP Directory Kit plugin. This function accepts a columns_search parameter from AJAX requests and incorporates it into a SQL query without applying wpdb::prepare() or proper escaping routines such as esc_sql(). Because the endpoint is exposed via WordPress AJAX hooks accessible to unauthenticated users, any visitor can submit crafted requests. The injected SQL is concatenated into the existing query, allowing attackers to extend the WHERE clause or append UNION SELECT statements.

The Exploit Prediction Scoring System places this vulnerability in a high-probability tier for near-term exploitation attempts, consistent with the historical pattern of automated scanners targeting unauthenticated WordPress plugin SQL injection flaws.

Root Cause

The root cause is improper neutralization of special elements used in an SQL command [CWE-89]. The plugin developer trusted client-supplied column-search input and interpolated it directly into the SQL string. WordPress provides the $wpdb->prepare() API specifically to bind parameters safely, but this code path bypasses it.

Attack Vector

An unauthenticated attacker sends a crafted HTTP POST request to the WordPress admin-ajax.php endpoint targeting the vulnerable select_2_ajax action. The attacker supplies a malicious columns_search payload containing SQL syntax — for example, a UNION SELECT clause referencing the wp_users table — to exfiltrate password hashes, secret keys, or session data. Because exploitation requires no authentication or user interaction, mass exploitation by automated bots is the expected pattern. Refer to the Wordfence Vulnerability Report and the WordPress Plugin Code Review for the precise vulnerable code path.

Detection Methods for CVE-2025-13138

Indicators of Compromise

  • POST requests to /wp-admin/admin-ajax.php with an action parameter referencing the WP Directory Kit select_2_ajax handler
  • HTTP request bodies containing SQL keywords such as UNION, SELECT, SLEEP(, INFORMATION_SCHEMA, or 0x hex sequences in the columns_search parameter
  • Unusually large or slow responses from admin-ajax.php consistent with blind or time-based SQL injection
  • Database query logs showing malformed SELECT statements originating from the plugin

Detection Strategies

  • Inspect web server access logs for requests to admin-ajax.php containing the columns_search parameter with non-alphanumeric characters
  • Enable WordPress query logging or MySQL general_log and alert on queries containing suspicious tautologies such as OR 1=1
  • Deploy a Web Application Firewall rule that blocks SQL metacharacters in the columns_search field

Monitoring Recommendations

  • Forward WordPress, web server, and database logs to a centralized analytics platform for correlation
  • Alert on spikes in admin-ajax.php traffic volume or error rates originating from the WP Directory Kit action
  • Monitor outbound database response sizes for anomalies indicative of bulk data extraction

How to Mitigate CVE-2025-13138

Immediate Actions Required

  • Update the WP Directory Kit plugin to a version newer than 1.4.3 once the vendor releases a patched build
  • Deactivate and remove the plugin if a patched version is not yet available and the directory functionality is non-essential
  • Audit the wp_users, wp_usermeta, and wp_options tables for unauthorized access or modification
  • Rotate WordPress secret keys in wp-config.php and force password resets for all administrator accounts

Patch Information

Review the WordPress Changeset History for the official remediation commit. Site administrators should verify the installed plugin version through the WordPress Plugin Overview and apply updates through the WordPress admin console.

Workarounds

  • Restrict access to /wp-admin/admin-ajax.php from untrusted networks where feasible, or place the site behind an authenticating reverse proxy
  • Deploy a WAF signature blocking SQL injection patterns targeting the columns_search POST parameter
  • Enforce least-privilege on the MySQL account used by WordPress so the database user cannot read tables outside the WordPress schema

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechWordpress

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability10.69%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • WordPress Plugin Code Review

  • WordPress Changeset History

  • WordPress Plugin Overview

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-4348: BetterDocs Pro WordPress SQLi Vulnerability

  • CVE-2026-1719: Gravity Bookings Premium SQLi Vulnerability

  • CVE-2026-6457: Geo Mashup WordPress Plugin SQLi Flaw

  • CVE-2026-4060: Geo Mashup WordPress Plugin SQLi Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English