CVE-2024-0685 Ninja Forms Contact Form <= 3.7.1 - Unauthenticated Second Order SQL Injection

Medium 5.9 Published Updated

Unauthenticated attackers can inject SQL via email fields, leading to data exposure or modification when admins trigger data exports.

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-0685?

CVE-2024-0685 is a medium-severity SQL injection vulnerability in Ninjaforms Ninja Forms, published on 2 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Ninja Forms Contact Form – The Drag and Drop Form Builder for WordPress plugin for WordPress is vulnerable to Second Order SQL Injection via the email address value submitted through forms in all versions up to, and including, 3.7.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to inject SQL in their email address that will append additional into the already existing query when an administrator triggers a personal data export.

Weakness: CWE-89

Which versions are affected by CVE-2024-0685?

It affects 1 product.

Products include Ninjaforms Ninja Forms.

How do I fix CVE-2024-0685?

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

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

All Ninjaforms Ninja Forms vulnerabilities

Sources

Also known as GHSA-4xm5-m6gw-q5w5.

Is CVE-2024-0685 in your software?

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

Check your SBOMs for free