CVE-2022-0782 Donations <= 1.8 - Unauthenticated SQLi

Critical 9.8 Published Updated

Unauthenticated attackers can inject SQL via the nd_donations_id parameter in the Donations WordPress plugin, potentially reading or modifying database content.

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-2022-0782?

CVE-2022-0782 is a critical SQL injection vulnerability in Unknown Donations, published on 25 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Donations WordPress plugin through 1.8 does not sanitise and escape the nd_donations_id parameter before using it in a SQL statement via the nd_donations_single_cause_form_validate_fields_php_function AJAX action (available to unauthenticated users), leading to an unauthenticated SQL Injection

Weakness: CWE-89

Which versions are affected by CVE-2022-0782?

It affects 1 product.

Products include Donations Project Donations.

How do I fix CVE-2022-0782?

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

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

Sources

Also known as GHSA-cw65-jxcc-x4vh.

Is CVE-2022-0782 in your software?

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

Check your SBOMs for free