Contact Form 7 Database Addon <= 1.2.5.3 - SQL Injection
Strategic Overview
- Status
- Patched in 1.2.5.4
- Affected Plugin
- Database Addon for Contact Form 7 – CFDB7
- Affected Version
< 1.2.5.4- CVSS
- 8.8High
- Weakness type
- CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CVE
CVE pending
At a glance
This record tracks a high-severity Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in the Database Addon for Contact Form 7 WordPress plugin, affecting versions < 1.2.5.4. It carries a CVSS score of 8.8 (reachable over the network; low attack complexity; high confidentiality, integrity, availability impact). The issue is fixed in version 1.2.5.4; sites on affected versions should update now. Disclosed January 2021.
Vulnerability Overview
The Contact Form 7 Database Addon plugin for WordPress is vulnerable to SQL Injection in versions up to, and including 1.2.5.3, that makes it possible for attackers to append arbitrary SQL queries into an existing query via the form_id parameter. This can be exploit by authenticated attackers to retrieve sensitive information from the database.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Reaching this weakness in Database Addon for Contact Form 7 < 1.2.5.4 takes a caller who can reach the endpoint. SQL injection happens when request data is concatenated into a query instead of being bound as a parameter, letting an attacker change the structure of the statement rather than just its values.
A working injection can read any table the database user can see, which on a WordPress install means user records, password hashes and session or API secrets stored in options. For Database Addon for Contact Form 7 the fix is 1.2.5.4: builds < 1.2.5.4 are affected, anything from 1.2.5.4 onward is not.
Remediation
Update to version 1.2.5.4, or a newer patched version
How does WordSec protect against this?
The attempt arrives as an ordinary request to Database Addon for Contact Form 7: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Database Addon for Contact Form 7 1.2.5.4 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
Other vulnerabilities in Database Addon for Contact Form 7 – CFDB7
- 8.8CVE-2021-24144: Contact Form 7 Database Addon <= 1.2.5.4 CSV Injection
CVE-2021-24144 - 7.2CVE-2022-3634: Contact Form 7 Database Addon <= 1.2.6.3 CSV Injection
CVE-2022-3634 - 6.5CVE-2021-36886: Contact Form 7 Database Addon – CFDB7 plugin CSRF
CVE-2021-36886 - 6.1CVE-2025-6740: Contact Form 7 Database Addon <= 1.3.1 Stored XSS
CVE-2025-6740 - 6.1CVE-2021-36885: Contact Form 7 Database Addon – CFDB7 Stored XSS
CVE-2021-36885 - 5.3CVE-2024-3870: Contact Form 7 Database Addon – CFDB7 Info Exposure
CVE-2024-3870
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C