Skip to main content

WP Contact Form 7 DB Handler EUVDEUVD-2026-32736

| CVE-2026-6455 HIGH
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-05-28 Wordfence GHSA-xf5m-7grh-3gvm
8.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify WordPress site running vulnerable plugin
  2. Delivery
    Craft CSRF page with UNION SQLi payload using CHAR()
  3. Exploit
    Lure logged-in admin to visit page
  4. Install
    Browser auto-submits POST without _wpnonce
  5. C2
    Injected query returns malicious serialized array as post_content
  6. Execute
    Plugin deserializes and passes ys_cfdbh_file values to wp_delete_file()
  7. Impact
    Delete wp-config.php and hijack site via setup wizard

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a logged-in WordPress administrator (or other user with capability to reach the plugin's bulk-action handler) to visit an attacker-controlled web page in the same browser session - UI:R in the CVSS vector reflects this and is the dominant limiting factor. The target WordPress site must have WP Contact Form 7 DB Handler version 3.0 or earlier installed and active, and the site's SameSite cookie configuration must allow the cross-origin POST (default WordPress auth cookies do not set SameSite=Strict, so most deployments are exposed). No attacker authentication to the target is required, no special server configuration beyond a default LAMP/LEMP WordPress install is needed, and the uploads directory must be writable/deletable by the webserver user (the default).

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H, score 8.1) accurately reflects the chain: network-reachable, low complexity, no privileges needed by the attacker, but user interaction is required (an admin must visit the attacker's page while authenticated). This UI:R requirement is the single largest mitigating factor - without an admin-targeted phishing or watering-hole vector, exploitation does not occur. EPSS and KEV status were not provided in the input, so probabilistic and active-exploitation signals cannot be cited; absence of a KEV entry does not equal absence of exploitation, only absence of CISA confirmation. SSVC framing: exploitation status is 'none' on the data provided (no public exploit identified), automatable is 'no' because the chain depends on admin interaction, and technical impact is 'total' for the affected site since deletion of wp-config.php enables takeover via the WordPress setup flow. Net: a real priority for any site running this plugin, but not a mass-scan emergency in the same league as a PR:N/UI:N RCE.

Exploit ScenarioDerived

An attacker emails or DMs a WordPress site administrator a link to an attacker-controlled page; while the admin is logged in to wp-admin in another tab, the page auto-submits a hidden cross-origin POST to admin.php?page=... that omits _wpnonce and supplies a UNION-injected ID parameter using CHAR() to embed a serialized PHP array containing a 'ys_cfdbh_file' key whose value resolves via ../ traversal to wp-config.php. The plugin deletes the file, the next request to the site triggers the WordPress setup wizard, and the attacker walks in and reconfigures the site against an attacker-controlled database, achieving full takeover. No public exploit identified at time of analysis, but the Wordfence write-up and the linked source lines provide enough detail to reproduce the chain.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 28, 2026

Arbitrary file deletion in the WP Contact Form 7 DB Handler WordPress plugin (versions up to and including 3.0) can be achieved by chaining CSRF, UNION-based SQL injection, and PHP object deserialization. A remote unauthenticated attacker who lures a logged-in administrator to a malicious page can delete arbitrary server files, including wp-config.php, which typically forces the site into a re-installation state and enables full site takeover. No public exploit identified at time of analysis, though Wordfence's detailed write-up effectively documents the exploit chain.

RemediationAI

Upstream fix available (changeset 3520240 on the WordPress plugin repository); released patched version not independently confirmed from the supplied data, so administrators should upgrade to the latest version published after the referenced changeset and verify the installed version against the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/96cdba03-7385-4374-915d-061be0276a95. Until upgrading, the most reliable compensating control is to deactivate and remove the WP Contact Form 7 DB Handler plugin, accepting the trade-off that historical form submissions stored by the plugin will become inaccessible from the admin UI. If the plugin must remain active, restrict /wp-admin access to known IPs via a web application firewall or webserver ACL to prevent admin browsers from reaching attacker-controlled CSRF pages while logged in, and instruct administrators to log out of WordPress when not actively using it; also harden the filesystem so the webserver user cannot delete wp-config.php (chattr +i or equivalent immutable-bit protection on Linux), accepting that this will break legitimate plugin/core updates until the bit is cleared.

Affected VersionsENISA

WP Contact Form 7 DB Handler 0 ≤3.0

Affected Packages

euvd wp_contact_form_7_db_handler no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the Yudiz-developed WP Contact Form 7 DB Handler plugin (CPE cpe:2.3:a:yudiz:wp_contact_form_7_db_handler), which stores Contact Form 7 submissions in the WordPress database. The root cause maps to CWE-352 (Cross-Site Request Forgery), but the impact is amplified by two secondary weaknesses visible in the referenced source lines (form-inner-page-class.php L589, L605, L607, L615): the process_bulk_action() function only calls wp_verify_nonce() inside a conditional that checks for the presence of _wpnonce in POST, so omitting the field skips the check entirely; the bulk action then concatenates a user-supplied ID into a WHERE ID = $ID clause without parameterization or numeric casting, and finally calls unserialize() on the returned post_content. PHP's unserialize() on attacker-controlled bytes triggers object/array instantiation, and array keys matching 'ys_cfdbh_file' are appended to the WordPress uploads path and passed to wp_delete_file() with no realpath or traversal validation.

Know when Wp Contact Form 7 Db Handler gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 8.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

DescriptionCVE.org

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).

Executive ViewAI

Why It Matters

WP Contact Form 7 DB Handler plugin (versions ≤3.0) allows unauthenticated attackers to achieve complete WordPress site compromise by manipulating administrators into visiting a malicious page. Exploitation deletes critical configuration files, rendering sites inoperative and forcing a full reinstallation that grants attackers control. Organizations using this plugin face immediate risk of site unavailability, data destruction, and total loss of administrative access.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Immediately deactivate WP Contact Form 7 DB Handler, (2) Deploy Web Application Firewall rules to block SQL injection and CSRF attacks, (3) Restrict WordPress admin panel access via IP allowlisting, (4) Enable file integrity monitoring for wp-config.php and wp-content/ directory, (5) Implement Content Security Policy headers, (6) Maintain current WordPress core and all other active plugin patches.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy