Description
The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the view_page function in all versions up to, and including, 1.5.1. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). Successful exploitation requires an administrator to view or edit the poisoned form entry, at which point PHP's bracket parser reshapes the attacker-crafted JSON key to bypass the stored-path isset check and trigger deletion of the traversal-specified file.
Published: 2026-06-20
Score: 8.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The plugin is vulnerable to arbitrary file deletion due to missing file path validation in the view_page function. A crafted POST parameter can cause PHP's JSON parser to reshape the key and bypass the existence check, enabling the deletion of any file referenced by a traversal string. Successful exploitation allows an attacker to delete critical files such as wp-config.php, potentially leading to remote code execution. The weakness is a classic path traversal flaw (CWE‑22).

Affected Systems

All installations of the Database for Contact Form 7, WPforms, and Elementor forms plugin with versions 1.5.1 or earlier are affected. The vulnerability exists in the core deletion logic accessed from the plugin’s administrative interface.

Risk and Exploitability

The CVSS score of 8.1 indicates high severity. EPSS is not reported, and the vulnerability is not listed in CISA’s KEV catalog. Inference from the description points to an HTTP POST attack vector targeting the form entry view page, requiring the attacker to supply a malicious form entry that an administrator subsequently opens or edits. Once the administrator accesses the poisoned entry, the deletion executes automatically. Given the lack of a required pre-authentication step, unauthenticated attackers can initiate the exploit by creating the poisoned entry if they have write access to the plugin database. The exploit would most likely be performed by a site administrator who has previously compromised the site or by a malicious actor who can inject the entry via the form interface.

Generated by OpenCVE AI on June 20, 2026 at 02:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the plugin to the latest release (1.5.2 or newer) where the file path validation issue is fixed.
  • If an update is not immediately possible, disable the form entry viewing/editing feature or restrict administrator access until the vulnerability is patched.
  • Implement monitoring of file deletion logs and anomalous POST requests to detect potential exploitation attempts.

Generated by OpenCVE AI on June 20, 2026 at 02:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 20 Jun 2026 01:45:00 +0000

Type Values Removed Values Added
Description The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the view_page function in all versions up to, and including, 1.5.1. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). Successful exploitation requires an administrator to view or edit the poisoned form entry, at which point PHP's bracket parser reshapes the attacker-crafted JSON key to bypass the stored-path isset check and trigger deletion of the traversal-specified file.
Title Database for Contact Form 7, WPforms, Elementor forms <= 1.5.1 - Unauthenticated Arbitrary File Deletion via CF7 File Field POST Value
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-06-20T01:27:22.783Z

Reserved: 2026-05-28T13:28:02.938Z

Link: CVE-2026-9843

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-20T02:30:05Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')