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

High 7.5 Published Updated

Unauthenticated attackers can perform SQL injection via improper query preparation in the WP Statistics plugin, allowing unauthorized data access or modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-24340?

CVE-2021-24340 is a high-severity SQL injection vulnerability in VeronaLabs WP Statistics, published on 7 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-89

Which versions are affected by CVE-2021-24340?

It affects 1 product.

Products include Veronalabs Wp Statistics.

How do I fix CVE-2021-24340?

No fix has been published for CVE-2021-24340 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2021-24340 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24340 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-9mj4-xv45-qwq2.

Is CVE-2021-24340 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free