What’s Vulnerable › Vulnerabilities
CVE-2021-24340: WP Statistics < 13.0.8 - Unauthenticated SQL Injection
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 29.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-06-07 · updated 2026-06-17
- Weakness: CWE-89
Description
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.
Affected products
- WP Statistics: before 13.0.8 — fixed in 13.0.8
How to fix
Upgrade to a fixed version: WP Statistics 13.0.8. Check the vendor advisory for mitigations.
References
- https://wpscan.com/vulnerability/d2970cfb-0aa9-4516-9a4b-32971f41a19c
- https://www.wordfence.com/blog/2021/05/over-600000-sites-impacted-by-wp-statistics-patch/
- https://wpscan.com/vulnerability/d2970cfb-0aa9-4516-9a4b-32971f41a19c
- https://www.wordfence.com/blog/2021/05/over-600000-sites-impacted-by-wp-statistics-patch/
Get alerted when CVE-2021-24340 or the next vulnerability affects your stack