CVE-2026-9145: Database for Contact Form 7, WPforms, Elementor forms <= 1.5.1 - Unauthenticated Arbitrary File Copy/Upload via Elementor Pro Form Upload Field 'raw_value'
The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to Arbitrary File Copy via the createentryel() function in versions up to, and including, 1.5.1. The function reads rawvalue from Elementor Pro's FormRecord object for upload-type fields and passes it directly to PHP's copy() without validating that the value corresponds to a legitimately uploaded file — when no file is present in $FILES, rawvalue reflects the attacker-controlled POST string. copy() accepts both local filesystem paths and URL sources, so the attacker can target any file readable by the PHP process or supply an attacker-controlled remote URL. Elementor Pro is a prerequisite for triggering the code path (it owns the elementorpro/forms/newrecord hook and populates the FormRecord object), but the bug itself is entirely in Contact Form Entries' handler. This could allow unauthenticated attackers to disclose arbitrary files on the affected site's server. The file is copied to a directory unknown to the attacker; the hashed directory name provides defense-in-depth but is generated from non-cryptographic sources (uniqid() + rand()) and should not be relied upon as the primary mitigation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
wordpress/plugins/database-for-contact-form-7-wpforms-elementor-formsto a version that resolves this vulnerability.Fixed in 1.5.1 - Compensating control
Mitigate the impact by restricting network access so that only authenticated/authorized users can submit form requests that would reach Contact Form Entries' handler (e.g., block unauthenticated access to the Elementor Pro Form Upload field submission endpoints via firewall/WAF/ACL).
- Operational
After upgrading, review the server for any unintended files that may have been copied/disclosed and remove any artifacts created during exploitation.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-9145?
The severity of CVE-2026-9145 is medium with a score of 6.5.
How do I fix CVE-2026-9145?
To fix CVE-2026-9145, update the Database for Contact Form 7, WPforms, Elementor forms plugin to version 1.5.2 or later.
What does CVE-2026-9145 exploit?
CVE-2026-9145 exploits a vulnerability in the handling of raw_value in Elementor Pro's Form_Record object allowing for unauthenticated arbitrary file uploads.
Which versions are affected by CVE-2026-9145?
CVE-2026-9145 affects versions of the Database for Contact Form 7, WPforms, Elementor forms plugin up to and including 1.5.1.
What type of vulnerability is CVE-2026-9145?
CVE-2026-9145 is classified as a Path Traversal vulnerability that allows unauthorized file copying or uploading.