Threat Overview
A critical unauthenticated arbitrary file upload vulnerability in Contact Form 7 (contact-form-7), the most widely installed contact form plugin in WordPress with over ten million active deployments, exposes vulnerable sites to remote code execution and same-origin script injection.
Tracked under CVE-2026-114432 (CVSS 9.8), the flaw combines missing file-type validation on upload fields with a failure in temporary-file cleanup that leaves uploaded payloads permanently on disk. Any site running a version earlier than 6.2.4 with a file-upload field is exposed.
| Threat Metric | Technical Details |
|---|---|
| Severity Rating | CRITICAL (CVSS 9.8 / 10.0) |
| Vulnerability Class | Unrestricted Upload of Dangerous File Type & Improper Cleanup (CWE-434) |
| Vulnerable Components | Contact Form 7 (contact-form-7, versions earlier than 6.2.4) |
| Attack Vector | Unauthenticated HTTP multipart submission via public form file fields |
| Exploit Precondition | Public Contact Form 7 form containing a file upload field |
| Fixed Versions | Contact Form 7 version 6.2.4 or higher |
Our Take in Plain English
“Almost every business owner who ever built on WordPress installed Contact Form 7—for years, it was the standard way to receive customer inquiries. The problem isn’t your choice of tool; from first principles, a public marketing page has no business running a live server-side file receiver in the first place. On legacy WordPress, letting a customer attach a project photo or PDF means allowing anonymous internet traffic—and today’s automated AI botnets—to write files straight onto the same server that runs your application code. When one cleanup routine fails to delete a temporary upload, a routine inquiry form turns into a permanent dropbox for exploits. In a modern pre-rendered edge architecture, the best server-side upload directory is no upload directory: public forms submit to isolated serverless intake endpoints with zero access to your web server.”
The Breakdown: How the Exploit Works
When a visitor submits a file through a Contact Form 7 upload field, the plugin writes the file into wp-content/uploads/wpcf7_uploads/ so it can attach the document to an outbound email before deleting the temporary copy.
In versions earlier than 6.2.4, two failures occur together. First, the upload handler fails to validate the file type or extension before writing to disk. Second, a flaw in the temporary-file cleanup routine leaves the uploaded file permanently inside the public uploads folder.
On standard Debian and Ubuntu Apache stacks—which permit directory listing and map .phar archives to the PHP handler—an unauthenticated attacker can upload a malicious .phar payload, locate it inside the temporary directory, and request it directly to achieve Remote Code Execution. On nginx or hardened Apache configurations, attackers can store active .html or .svg files that execute from the business’s own origin.
The Operational Risk: What an Attacker Gains
- Unauthenticated Remote Code Execution: On stock Debian and Ubuntu Apache servers, attackers execute arbitrary PHP commands via uploaded
.phararchives without logging in. - Same-Origin Phishing & Script Execution: On other servers, attackers plant persistent
.htmland.svgpayloads served under the company’s trusted domain and SSL certificate. - Database & Lead Theft: Once code execution is achieved, attackers read
wp-config.php, dump customer inquiry tables, and plant persistent backdoors. - Massive Automated Scan Surface: Because Contact Form 7 powers over ten million sites, automated AI botnets continuously probe contact pages for active upload fields.
The Modern Architectural Remedy
- Legacy Dynamic WordPress: Processes multipart uploads directly inside the live PHP runtime and writes temporary files into web-accessible folders on the origin server.
- Modern Pre-Rendered Edge Architecture: Decouples form intake from the public server entirely, routing submissions through isolated cloud validation pipelines with zero executable filesystem access.
Immediate Action Items for WordPress Operators
- Upgrade Contact Form 7 Immediately: Update
contact-form-7to version6.2.4or higher across all environments. - Audit Temporary Upload Folders: Inspect
wp-content/uploads/wpcf7_uploads/for lingering.phar,.php,.html, or.svgfiles and purge unauthorized artifacts. - Disable PHP & PHAR Execution in Uploads: Explicitly block
.pharand.phpexecution insidewp-content/uploads/at the web-server level. - Remove Unneeded File Fields: Remove
[file]upload fields from public forms until migrated off legacy dynamic hosting.
