Contact Form 7 Vulnerability: File Upload Flaw in 6.2
By WP Vanguard Team
Contact Form 7 versions 6.2 through 6.2.3 have an unauthenticated arbitrary file upload flaw, CVE-2026-114432, scored 9.8 out of 10. This Contact Form 7 vulnerability needs no login, and the plugin has more than 10 million active installs. The fix is in 6.2.4, which shipped on October 29, a week before the advisory appeared on November 5. The current release is 6.2.5.
We found no report of attacks as of November 13. That can change quickly with a bug this simple to describe, so it belongs at the top of this week's update list.
On this page
23 days
between the release of Contact Form 7 6.2 and the fixed 6.2.4
WordPress.org repository: tag 6.2 on October 6, tag 6.2.4 on October 29, 2026.
What the advisory says
The record in our database reads "Contact Form 7 6.2 - 6.2.3 - Unauthenticated Arbitrary File Upload", with a CVSS score of 9.8 and 6.2.4 as the fixed version. The Wordfence feed it comes from doesn't publish exploit steps, and we haven't reproduced the bug. Everything below about the cause comes from reading the code that changed.
Only the 6.2 branch is affected. If a site is still on 5.x or earlier, this CVE doesn't apply to it, though those sites have a bigger problem: they're missing every fix since.
- Oct 66.2 released
- Oct 296.2.4 released
- Nov 5CVE published
- Nov 106.2.5 released
WordPress.org repository and our vulnerability database.
What the 6.2.4 patch changes
Contact Form 7 saves a visitor's uploaded file to a temporary folder, wp-content/uploads/wpcf7_uploads, before it attaches the file to the notification email. Before saving, it runs the filename through a function that defuses script files. That function is where the main change landed.
In 6.2.3 it was a blocklist. It renamed a file only when the extension matched php, phtml, pl, py, rb, cgi, asp or aspx, optionally followed by a digit. Any other extension passed untouched. Blocklists fail by design: they stop what the author thought of and nothing else, and a file that PHP or the web server will run under some other name sails through.
In 6.2.4 it's a safelist. The code now allows audio, video and image extensions plus pdf and txt, and renames everything else by adding _.txt to the end. A script file that gets through the old pattern ends up as an inert text file.
The patch also fixes how the filename is cleaned before that check. It now strips invalid UTF-8 first and treats a long list of Unicode space characters, such as the no-break space and the ideographic space, as separators. The old code only handled plain whitespace. That suggests the bypass involved filenames built from unusual characters, but the changelog doesn't say, so treat it as our reading, not a confirmed cause.
A third change is in the submission handler. Files already moved to the temporary folder are now recorded in the submission even when a later file in the same field fails, where the old code dropped them from the list.
Key finding
Update to Contact Form 7 6.2.5 today. If a site ran 6.2 to 6.2.3 between October 6 and 29 and any form has a file upload field, also look through the uploads folder for files that don't belong.
Who should worry first
The repaired code is the file-field handler, so forms with a file upload field are where to look first. A form with only text fields gives that handler nothing to process, but we can't confirm from the advisory that such forms were safe, so update every site regardless.
Sites that updated automatically between October 29 and now are already patched. Sites that turned off auto-updates for plugins, which is common on agency-managed and e-commerce sites, are the ones still exposed. Premium themes that bundle their own copy of the plugin are a second gap: check the version the site really runs, not the version the theme claims.
How to check a site
Run this to see the installed version and whether the plugin is active:
wp plugin list --name=contact-form-7 --fields=name,version,status
Anything from 6.2 to 6.2.3 needs the update. To look for leftovers, search the uploads folder for script files created since 6.2 came out:
find wp-content/uploads \( -name "*.php*" -o -name "*.phtml" -o -name "*.phar" \) -newermt 2026-10-06
A clean uploads folder holds no PHP files at all, so any match deserves a closer look, even when the name seems harmless. Also check wp-content/uploads/wpcf7_uploads for files with odd names or extensions. Our guide to PHP backdoors in WordPress shows what a planted file usually looks like, and the signs your WordPress site has been hacked list covers what else to check.
What we can't tell you yet
We can't say how many sites were hit, because the advisory doesn't include exploit details and no vendor or researcher has published attack data. We also can't say whether the 6.2.5 release closes anything further, because its changelog entry only links to a release announcement. What we can say is that the fix between 6.2.3 and 6.2.4 is visible in the public code, which means anyone can read the same diff we did. That is why patching quickly matters more than waiting for attack reports.
One side effect of the new safelist
The safelist can surprise sites that collect documents. Under the new code, a .docx, .zip or .csv upload ends up renamed to something like report.docx_.txt unless the extension is allowed. Sites that need those types can add them through the wpcf7_file_extension_safelist filter that 6.2.4 introduced. Don't let that annoyance push you back to 6.2.3. A renamed document is a support ticket. An open upload hole is an incident.
Where this fits
This is the second form-plugin file flaw this month that needed a close read of the patch. Our research on PDF plugins that turn form input into files found five CVEs in four plugins in seven weeks, and the Ninja Forms file upload flaw followed the same pattern of a form field handing a visitor control over a file. For the full picture of how sites get compromised, see how WordPress sites get hacked, and keep the weekly patch list bookmarked.
Run a scan
Run a scan on your site to check your Contact Form 7 version and every other plugin against our vulnerability database.
References
Related reading
Get weekly WordPress security tips
Vulnerability alerts, plugin updates, and security guides. No spam. Unsubscribe any time.