Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-0866 Overview
CVE-2025-0866 is a time-based SQL injection vulnerability in the Legoeso PDF Manager plugin for WordPress. The flaw affects all versions up to and including 1.2.2 and stems from insufficient escaping on the checkedVals parameter combined with inadequate query preparation. Authenticated users with Author-level access or above can append additional SQL statements to existing queries. Successful exploitation allows attackers to extract sensitive information from the WordPress database, including credentials, session tokens, and configuration data. The vulnerability is categorized under [CWE-89] (Improper Neutralization of Special Elements used in an SQL Command).
Critical Impact
Authenticated attackers with Author-level access can extract sensitive data from the WordPress database through time-based SQL injection against the checkedVals parameter.
Affected Products
- Legoeso PDF Manager plugin for WordPress, all versions through 1.2.2
- WordPress installations where the plugin is active with Author-level or higher user registration enabled
- Sites using the plugin's admin document list table functionality
Discovery Timeline
- 2025-02-20 - CVE-2025-0866 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-0866
Vulnerability Analysis
The vulnerability resides in the Legoeso PDF Manager plugin's admin document list table logic. The affected code path handles the checkedVals parameter submitted by authenticated users and passes the value into an SQL statement without proper sanitization or parameter binding. Because the parameter is concatenated into the query, attackers can inject additional SQL syntax that the database engine will execute.
Exploitation requires an authenticated session with at least Author-level privileges. Since time-based techniques rely on database-side delay functions such as SLEEP(), the attack does not depend on visible output in the HTTP response. Attackers infer data one bit at a time by observing response timing. This makes the flaw suitable for extracting password hashes, secret keys, and other confidential values from wp_users, wp_usermeta, and wp_options.
Root Cause
The root cause is a combination of insufficient input escaping and the absence of prepared statements around the checkedVals parameter. The plugin trusts values coming from authenticated administrative requests and inserts them directly into an SQL query string. Relevant code locations are documented in the WordPress Plugin Code Reference at line 543 and line 567.
Attack Vector
The attack vector is network-based and requires authentication. An attacker with Author or higher privileges submits a crafted checkedVals parameter via the plugin's admin request handler. The payload contains SQL fragments that append conditional time-delay statements to the underlying query. Response latency indicates whether an injected boolean condition evaluated true, enabling blind data extraction. See the Wordfence Vulnerability Analysis for additional technical detail.
Detection Methods for CVE-2025-0866
Indicators of Compromise
- HTTP POST requests to WordPress admin endpoints containing checkedVals parameters with SQL keywords such as SLEEP, BENCHMARK, UNION, or SELECT
- Requests from Author-level accounts with response times consistently in multiples of injected delay values
- Unusual database query durations logged by MySQL slow query logs originating from PHP-FPM workers serving the plugin
- Repeated admin-ajax requests referencing the plugin's document list table from a single authenticated session
Detection Strategies
- Inspect web server access logs for the checkedVals parameter and flag values containing SQL metacharacters or time-delay functions
- Correlate authenticated user sessions with abnormally long response times from /wp-admin/ endpoints tied to the plugin
- Enable MySQL general query logging temporarily and search for queries referencing the plugin's tables with appended SLEEP() or BENCHMARK() calls
Monitoring Recommendations
- Enable WordPress audit logging to record Author-level user activity and privilege changes
- Configure a web application firewall to alert on SQL injection payload signatures in plugin request parameters
- Monitor for new or unexpected Author accounts created shortly before suspicious plugin activity
How to Mitigate CVE-2025-0866
Immediate Actions Required
- Deactivate the Legoeso PDF Manager plugin until a patched version is confirmed installed
- Audit all WordPress accounts with Author-level access or higher and remove untrusted or dormant users
- Rotate WordPress secret keys in wp-config.php and reset passwords for privileged users if compromise is suspected
- Review database access logs and MySQL slow query logs for evidence of prior exploitation
Patch Information
No fixed version is listed in the enriched CVE data at the time of publication. Consult the WordPress Plugin Developer Info page for release status and the Wordfence Vulnerability Analysis for updated remediation guidance. Update to the latest available plugin version once the vendor releases a patched build.
Workarounds
- Remove or disable the Legoeso PDF Manager plugin on affected WordPress installations
- Restrict Author-level and higher role assignments to trusted, verified users only
- Deploy a web application firewall rule that blocks requests containing SQL keywords in the checkedVals parameter
- Enforce least-privilege database credentials for the WordPress MySQL user to limit data exposure from injection attempts
# Example WAF rule concept: block SQL keywords in the checkedVals parameter
# ModSecurity-style pseudo-rule
SecRule ARGS:checkedVals "@rx (?i)(sleep|benchmark|union|select|information_schema)" \
"id:1009000866,phase:2,deny,status:403,msg:'CVE-2025-0866 Legoeso PDF Manager SQLi attempt'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

