CVE-2024-0685 Ninja Forms Contact Form <= 3.7.1 - Unauthenticated Second Order SQL Injection
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.
Other vulnerabilities in Ninjaforms Ninja Forms
- CVE-2025-9083 Ninja-forms < 3.11.1 - Unauthenticated PHP Objection
- CVE-2016-1209 Deserialization in n/a
- CVE-2018-20981 Information disclosure in n/a
- CVE-2024-25572 Cross-site request forgery in Ninja Forms
- CVE-2021-24163 Ninja Forms < 3.4.34 - Authenticated SendWP Plugin Installation and Client Secret Key Disclosure
Sources
Also known as GHSA-4xm5-m6gw-q5w5.