Vulnerability record · CVE-2021-39312 · published 14 December 2021
CVE-2021-39312: True Ranker WordPress plugin path traversal allows arbitrary file read
Trueranker · True Ranker
The True Ranker plugin for WordPress, versions up to and including 2.2.2, exposes a src parameter in its bundled DataTables example file that is not properly restricted, allowing path traversal. An unauthenticated attacker can use it to read arbitrary files on the server, including wp-config.php, which holds database credentials and authentication salts.
Description
The True Ranker plugin <= 2.2.2 for WordPress allows arbitrary files, including sensitive configuration files such as wp-config.php, to be accessed via the src parameter found in the ~/admin/vendor/datatables/examples/resources/examples.php file.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Automated analysis
high priorityUnauthenticated remote file read of wp-config.php is a serious exposure, and the very high EPSS score plus a public exploit reference raise the likelihood of exploitation.
What it is
The True Ranker plugin for WordPress, versions up to and including 2.2.2, exposes a src parameter in its bundled DataTables example file that is not properly restricted, allowing path traversal. An unauthenticated attacker can use it to read arbitrary files on the server, including wp-config.php, which holds database credentials and authentication salts.
Impact
An attacker gains read access to sensitive server files, most critically wp-config.php, exposing database credentials and secret keys that can be used to pivot to the underlying database or forge WordPress authentication cookies.
Attack surface
The flaw is reachable over the network through the plugin's admin/vendor/datatables/examples/resources/examples.php endpoint via the src parameter. The CVSS vector shows no privileges required and no user interaction, so it can be triggered by an unauthenticated remote request.
Exploitation
No CISA KEV listing and no ransomware association are recorded, but EPSS is very high at roughly 0.78 (99.5th percentile) and a public exploit reference exists on Packet Storm, indicating active interest and easy weaponization.
What to do
- Update the True Ranker plugin to a version later than 2.2.2, or remove the plugin if no fixed release is available.
- If the plugin cannot be patched immediately, block or restrict access to the admin/vendor/datatables/examples/ path at the web server or WAF.
- Rotate database credentials and WordPress authentication salts in wp-config.php if compromise is suspected.
- Remove or restrict access to bundled vendor example and test files that are not needed in production.
Detection
- Search web server logs for requests to examples.php with a src parameter containing traversal sequences such as ../ or encoded variants.
- Alert on access to admin/vendor/datatables/examples/resources/examples.php from external or unexpected source IPs.
- Monitor for outbound database connections or authentication anomalies that could follow exposure of wp-config.php credentials.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://packetstormsecurity.com/files/165434/WordPress-The-True-Ranker-2.2.2-Arbitrary-File-Read.html | ExploitThird Party AdvisoryVDB Entry |
| https://plugins.trac.wordpress.org/browser/seo-local-rank/tags/2.2.2/admin/vendor/datatables/examples/resources/examples | Third Party Advisory |
| https://www.wordfence.com/vulnerability-advisories/#CVE-2021-39312 | Third Party Advisory |
| http://packetstormsecurity.com/files/165434/WordPress-The-True-Ranker-2.2.2-Arbitrary-File-Read.html | ExploitThird Party AdvisoryVDB Entry |
| https://plugins.trac.wordpress.org/browser/seo-local-rank/tags/2.2.2/admin/vendor/datatables/examples/resources/examples | Third Party Advisory |
| https://www.wordfence.com/vulnerability-advisories/#CVE-2021-39312 | Third Party Advisory |
Track CVE-2021-39312 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-39312), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.