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-2026-4348

CVE-2026-4348: BetterDocs Pro WordPress SQLi Vulnerability

CVE-2026-4348 is a SQL injection flaw in BetterDocs Pro plugin for WordPress that allows unauthenticated attackers to extract sensitive database information. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-4348 Overview

CVE-2026-4348 is an unauthenticated SQL injection vulnerability in the BetterDocs Pro plugin for WordPress. The flaw affects all versions up to and including 3.7.0. It exists in the get_current_letter_docs and docs_sort_by_letter AJAX actions, where the limit POST parameter is interpolated directly into a SQL query string before being passed to $wpdb->prepare(). Because $wpdb->prepare() only parameterizes the remaining variables, the injected limit value reaches the database engine unsanitized. The Encyclopedia feature must be enabled in BetterDocs Pro settings for the vulnerability to be exploitable.

Critical Impact

Unauthenticated attackers can append SQL queries to existing statements and extract sensitive data, including credentials and password hashes, from the WordPress database.

Affected Products

  • BetterDocs Pro plugin for WordPress, all versions through 3.7.0
  • WordPress sites with the Encyclopedia feature enabled in BetterDocs Pro settings
  • WordPress installations exposing the admin-ajax.php endpoint to unauthenticated users

Discovery Timeline

  • 2026-05-07 - CVE-2026-4348 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-4348

Vulnerability Analysis

The vulnerability is a classic SQL injection [CWE-89] caused by unsafe string interpolation. The plugin builds a SQL statement that embeds the limit POST parameter directly into the query body. The developer then calls $wpdb->prepare() to bind other parameters, but prepare() does not retroactively sanitize values already concatenated into the query string. Attackers control the limit value through standard WordPress AJAX requests sent to admin-ajax.php with the action parameter set to get_current_letter_docs or docs_sort_by_letter.

Root Cause

The root cause is the misuse of $wpdb->prepare(). WordPress requires every dynamic value to be passed as a placeholder argument such as %d or %s. When the limit parameter is concatenated into the query template before prepare() runs, the function treats the injected SQL as part of the static query. This pattern bypasses parameter binding entirely for the affected variable.

Attack Vector

The attack vector is the network. An unauthenticated attacker sends a crafted POST request to wp-admin/admin-ajax.php containing a malicious limit payload. Typical payloads use UNION SELECT clauses to exfiltrate user records, session tokens, or option values. Time-based blind techniques are also viable when output is suppressed. Successful exploitation requires the Encyclopedia feature to be active in the plugin configuration.

No verified public exploit code is available at this time. Refer to the Wordfence Vulnerability Analysis for additional technical context.

Detection Methods for CVE-2026-4348

Indicators of Compromise

  • POST requests to admin-ajax.php with action=get_current_letter_docs or action=docs_sort_by_letter containing SQL keywords such as UNION, SELECT, SLEEP, or BENCHMARK in the limit parameter.
  • Unexpected database read errors or anomalous query latency originating from the wp_betterdocs_* code paths.
  • Outbound traffic from the WordPress host carrying base64-encoded user records or password hashes shortly after suspicious AJAX activity.

Detection Strategies

  • Inspect web server access logs for unauthenticated POSTs to admin-ajax.php referencing the two vulnerable actions, then correlate with non-numeric limit values.
  • Deploy a web application firewall rule that blocks requests where the limit parameter contains anything other than digits.
  • Monitor MySQL general or slow query logs for queries containing LIMIT followed by SQL syntax such as comments, subqueries, or UNION.

Monitoring Recommendations

  • Forward WordPress, web server, and database logs to a centralized analytics platform such as Singularity Data Lake to enable cross-source correlation of injection attempts.
  • Alert on spikes in admin-ajax.php traffic targeting BetterDocs actions from a single IP or autonomous system.
  • Track unauthenticated requests that produce HTTP 500 responses, which often indicate failed injection probes.

How to Mitigate CVE-2026-4348

Immediate Actions Required

  • Update BetterDocs Pro to a version later than 3.7.0 once the vendor publishes a fix; consult the BetterDocs Changelog for release status.
  • Disable the Encyclopedia feature in BetterDocs Pro settings until a patched version is installed.
  • Audit the wp_users, wp_usermeta, and wp_options tables for unauthorized reads and rotate any credentials that may have been exposed.

Patch Information

The vendor advisory tracks remediation through the BetterDocs Changelog. Site administrators should apply the next plugin release that explicitly addresses CVE-2026-4348 and verify the version after upgrade through the WordPress plugin manager.

Workarounds

  • Block POST requests to admin-ajax.php where action equals get_current_letter_docs or docs_sort_by_letter at the WAF or reverse proxy layer.
  • Enforce a numeric-only validation rule on the limit parameter using a request filtering module such as ModSecurity.
  • Restrict access to the WordPress admin AJAX endpoint by IP allowlist where business requirements permit.
bash
# Example ModSecurity rule to block non-numeric limit values targeting the vulnerable actions
SecRule ARGS:action "@rx ^(get_current_letter_docs|docs_sort_by_letter)$" \
    "id:1004348,phase:2,deny,status:403,chain,\
    msg:'CVE-2026-4348 BetterDocs Pro SQLi attempt'"
    SecRule ARGS:limit "!@rx ^[0-9]+$" "t:none"

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

  • 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
  • BetterDocs Changelog

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • 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

  • CVE-2026-4062: 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