Contact Form 7 6.2 - 6.2.3 - Unauthenticated Arbitrary File Upload via Invalid UTF-8 Filename
A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 6.2.4.
The Contact Form 7 WordPress plugin before 6.2.4 does not validate the type or extension of files uploaded through a form file field, and a flaw in its temporary-file cleanup leaves the uploaded file on disk, allowing unauthenticated users to upload arbitrary files to the site. On a stock Debian or Ubuntu Apache configuration, which lists directory contents and maps .phar to the PHP handler, the stored file can be located and executed, leading to Remote Code Execution. On other configurations, including nginx and Apache with .htaccess overrides enabled, the issue is limited to an arbitrary file written into the uploads directory, which may still be served as active content such as HTML or SVG from the site's own origin.
Briefing
Written from the sources below · deepseek-v4.1-flash
Contact Form 7 before 6.2.4 fails to validate uploaded file types and extensions, and a temporary-file cleanup flaw leaves the uploaded file on disk, letting unauthenticated users upload arbitrary files. Sites running the plugin are affected.
Why it mattersPublic exploit material exists and the flaw can lead to remote code execution on stock Debian or Ubuntu Apache setups, so exposed sites are at high risk.
ActionUpgrade Contact Form 7 to 6.2.4 or later.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| >=6.2 <6.2.4 | 6.2.4 |
Exploit evidence
1 public sources
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket