CVE-2026-9145 Path traversal in Database for Contact Form 7, WPforms, Elementor forms
Unauthenticated attackers can disclose arbitrary server files via the Elementor Pro form upload field in the Database for Contact Form 7 plugin.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-9145?
CVE-2026-9145 is a medium-severity path traversal vulnerability in crmperks Database for Contact Form 7, WPforms, Elementor forms, published on 2 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to Arbitrary File Copy via the create_entry_el() function in versions up to, and including, 1.5.1. The function reads raw_value from Elementor Pro's Form_Record 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, raw_value 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 elementor_pro/forms/new_record hook and populates the Form_Record 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.
Weakness: CWE-22
Which versions are affected by CVE-2026-9145?
How do I fix CVE-2026-9145?
No fix has been published for CVE-2026-9145 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-9145 being exploited?
There is no known exploitation of CVE-2026-9145 in the wild and no public exploit code.
Sources
Also known as GHSA-hhr7-mvm5-p73g.