CVE-2022-0787 Limit Login Attempts (Spam Protection) < 5.1 - Unauthenticated SQLi

Critical 9.8 Published Updated

Unauthenticated attackers can perform SQL injection via AJAX actions in the Limit Login Attempts WordPress plugin, potentially accessing 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-0787?

CVE-2022-0787 is a critical SQL injection vulnerability in Unknown Limit Login Attempts (Spam Protection), published on 28 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Limit Login Attempts (Spam Protection) WordPress plugin before 5.1 does not sanitise and escape some parameters before using them in SQL statements via AJAX actions (available to unauthenticated users), leading to SQL Injections

Weakness: CWE-89

Which versions are affected by CVE-2022-0787?

It affects 1 product.

Products include Limit Login Attempts Project Limit Login Attempts.

How do I fix CVE-2022-0787?

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

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-mv3w-5q88-w6jv.

Is CVE-2022-0787 in your software?

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

Check your SBOMs for free