# CVE-2021-24340: WP Statistics < 13.0.8 - Unauthenticated SQL Injection

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 29.8%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-06-07T10:49:50.000Z
- Modified: 2026-06-17T03:39:51.677Z
- Weaknesses: CWE-89
- Assigned by: WPScan

## 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.

(As written by CVE List.)

## Affected

- VeronaLabs WP Statistics: from 13.0.8 before 13.0.8
- veronalabs wp_statistics: before 13.0.8

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://wpscan.com/vulnerability/d2970cfb-0aa9-4516-9a4b-32971f41a19c> (exploit, third-party-advisory)
- <https://www.wordfence.com/blog/2021/05/over-600000-sites-impacted-by-wp-statistics-patch/> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24340](https://www.cve.org/CVERecord?id=CVE-2021-24340), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24340](https://nvd.nist.gov/vuln/detail/CVE-2021-24340), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24340 · Whole record: https://cve.day/CVE-2021-24340.json · Rebuilt by cve.day 2026-11-25T22:58:01.665Z
