CVE-2026-6455
Received Received - Intake
Cross-Site Request Forgery to Arbitrary File Deletion in WP Contact Form 7 DB Handler

Publication date: 2026-05-28

Last updated on: 2026-05-28

Assigner: Wordfence

Description
The WP Contact Form 7 DB Handler plugin for WordPress is vulnerable to Cross-Site Request Forgery leading to Arbitrary File Deletion via SQL Injection and PHP Object Injection in versions up to and including 3.0. This is due to a missing nonce verification in the process_bulk_action() function, the nonce check is only executed when _wpnonce is present in the POST body, allowing it to be trivially bypassed by omitting the field, combined with the use of an unsanitized, unparameterized user-supplied value in a numeric SQL context (WHERE ID = $ID) and the unsafe deserialization of the query result's post_content field. An attacker can craft a CSRF page that tricks a logged-in administrator into triggering a UNION-based SQL injection payload (using CHAR() to avoid esc_sql quote-escaping) that returns a malicious serialized PHP array as post_content; upon deserialization, array values associated with keys containing 'ys_cfdbh_file' are used as file paths appended to the uploads directory path without any path traversal validation, and then passed to wp_delete_file(), allowing the attacker to delete arbitrary files on the server (e.g., wp-config.php, system files).
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-28
Last Modified
2026-05-28
Generated
2026-05-28
AI Q&A
2026-05-28
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
wp_contact_form_7_db_handler plugin to 3.0 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-352 The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The WP Contact Form 7 DB Handler plugin for WordPress has a vulnerability in versions up to and including 3.0 that allows Cross-Site Request Forgery (CSRF) leading to Arbitrary File Deletion. This happens because the plugin's process_bulk_action() function lacks proper nonce verification when the _wpnonce field is missing from the POST request, allowing attackers to bypass security checks.

An attacker can exploit this by tricking a logged-in administrator into triggering a SQL injection payload that returns malicious serialized PHP data. This data is then unsafely deserialized, and file paths extracted from it are used without validation to delete arbitrary files on the server, such as wp-config.php or other system files.


How can this vulnerability impact me? :

This vulnerability can have severe impacts including the deletion of critical files on the server hosting the WordPress site. An attacker can delete important configuration files or system files, potentially causing site downtime, data loss, or complete compromise of the website.

Since the attack requires tricking an administrator into performing an action, it can lead to unauthorized file deletions without the administrator's knowledge, resulting in significant operational disruption and security risks.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart