CVE-2024-13321 AnalyticsWP <= 2.0.0 - Unauthenticated SQL Injection

High 7.5 Published Updated

Unauthenticated attackers can inject SQL queries via the custom_sql parameter to extract sensitive database information from the AnalyticsWP WordPress plugin.

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-2024-13321?

CVE-2024-13321 is a high-severity SQL injection vulnerability in Solid Plugins AnalyticsWP, published on 14 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The AnalyticsWP plugin for WordPress is vulnerable to SQL Injection via the 'custom_sql' parameter in all versions up to, and including, 2.0.0 due to insufficient authorization checks on the handle_get_stats() function. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

Weakness: CWE-89

Which versions are affected by CVE-2024-13321?

It affects 1 product.

Products include Analyticswp Analyticswp.

How do I fix CVE-2024-13321?

No fix has been published for CVE-2024-13321 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-2024-13321 being exploited?

There is no known exploitation of CVE-2024-13321 in the wild and no public exploit code.

Sources

Also known as GHSA-4q32-7h2w-6grm.

Is CVE-2024-13321 in your software?

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

Check your SBOMs for free