CVE-2021-24340: The WP Statistics WordPress plugin before 13.0.8 relied on using the WordPress esc_sql() function on a field n
CVE-2021-24340 is a high-severity flaw (CVSS 7.5) affecting wp statistics. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
The WP Statistics WordPress plugin before 13.0.8 relied on using the WordPress esc_sql() function on a field not delimited by quotes and did not first prepare the query. Additionally, the page, which should have been accessible to administrator only, was also available to any visitor, including unauthenticated ones.
Why this priority
- High severity
- EPSS top 2%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.5 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 29.8% (top 2%) |
| CISA exploited list | No |
| Weakness | CWE-89 |
| Published | 2021-06-07 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Nuclei scan template: WordPress Statistics <13.0.8 - Blind SQL Injection
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-24340?
wp statistics: upgrade to 13.0.8. Exact commands for each OS are on this page.
Is CVE-2021-24340 being exploited?
CVE-2021-24340 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-24340 affect?
CVE-2021-24340 affects wp statistics. Severity is high (CVSS 7.5). The WP Statistics WordPress plugin before 13.0.8 relied on using the WordPress esc_sql() function on a field not delimited by quotes and did not first prepare the query. Additionally, the page, which should have been accessible to administr
How urgent is CVE-2021-24340?
Priority 61/100. High severity; EPSS top 2%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2023-0955 HIGH 8.8 UPGRADE The WP Statistics WordPress plugin before 14.0 does not escape a parameter, which could allow authenticated us
- CVE-2022-4230 HIGH 8.8 UPGRADE The WP Statistics WordPress plugin before 13.2.9 does not escape a parameter, which could allow authenticated
- CVE-2022-38074 HIGH 7.1 UPGRADE SQL Injection vulnerability in VeronaLabs WP Statistics plugin <= 13.2.10 versions.
- CVE-2022-27231 MEDIUM 6.1 UPGRADE Cross-site scripting vulnerability exists in WP Statistics versions prior to 13.2.0 because it improperly proc
- CVE-2022-25307 HIGH 7.2 UPGRADE The WP Statistics WordPress plugin is vulnerable to Cross-Site Scripting due to insufficient escaping and sani