Advanced Contact form 7 DB <= 1.8.6 - Authenticated Arbitrary File Deletion
Strategic Overview
- Status
- Patched in 1.8.7
- Affected Plugin
- Advanced Contact form 7 DB
- Affected Version
< 1.8.7- CVSS
- 8.8High
- Weakness type
- CWE-863 · Incorrect Authorization
- CVE
CVE-2021-24905
At a glance
CVE-2021-24905 is a high-severity Incorrect Authorization vulnerability in the Advanced Contact form 7 DB WordPress plugin, affecting versions < 1.8.7. It carries a CVSS score of 8.8 (reachable over the network; low attack complexity; high confidentiality, integrity, availability impact). Exploitation requires an authenticated account. The issue is fixed in version 1.8.7; sites on affected versions should update now. Disclosed February 2022, reported by Krzysztof Zając.
Vulnerability Overview
The Advanced Contact form 7 DB WordPress plugin before 1.8.7 does not have authorisation nor CSRF checks in the acf7_db_edit_scr_file_delete AJAX action, and does not validate the file to be deleted, allowing any authenticated user to delete arbitrary files on the web server. For example, removing the wp-config.php allows attackers to trigger WordPress setup again, gain administrator privileges and execute arbitrary code or display arbitrary content to the users.
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-863: Incorrect Authorization
Reaching this weakness in Advanced Contact form 7 DB < 1.8.7 takes any authenticated account. Incorrect authorization means a permission check exists but evaluates the wrong thing, so it passes for callers it was meant to stop.
The action runs for users the code intended to exclude, with the same effect as having no check at all. For Advanced Contact form 7 DB the fix is 1.8.7: builds < 1.8.7 are affected, anything from 1.8.7 onward is not.
Remediation
Update to version 1.8.7, or a newer patched version
How does WordSec protect against this?
Because it turns on account access, WordSec's login security is the relevant layer: role-based two-factor, captcha and brute-force limits raise the cost of getting the account this needs. None of that substitutes for the fix: Advanced Contact form 7 DB 1.8.7 closes this, and updating the plugin is the step that ends it.
- Login Security
- Alerts
External References
Related records
Other vulnerabilities in Advanced Contact form 7 DB
- 9.8CVE-2019-13571: Advanced Contact Form 7 DB <= 1.6.2 SQL Injection
CVE-2019-13571 - 8.5Advanced Contact form 7 DB <= 1.6.0 SQL Injection
- 7.5CVE-2024-45293: PHPSpreadsheet Library < 2.3.0 XXE Injection
CVE-2024-45293 - 6.1CVE-2022-29408: Advanced Contact form 7 DB <= 1.8.7 Stored XSS
CVE-2022-29408 - 5.4CVE-2026-0811: Advanced CF7 DB <= 2.0.9 CSRF to Form Entry Deletion
CVE-2026-0811 - 5.3CVE-2024-4319: Advanced… Unauthenticated Information Disclosure
CVE-2024-4319 - 5.3CVE-2024-3723: Advanced Contact form 7 DB <= 2.0.2 Info Exposure
CVE-2024-3723 - 4.3CVE-2026-18594: Advanced Contact form 7 DB Authenticated (Custom+)
CVE-2026-18594
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C