Description
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.
Published: 2026-11-08
Score: n/a
EPSS: n/a
KEV: No
Impact: Remote Code Execution through Arbitrary File Upload
Action: Immediate Patch
AI Analysis

Impact

The Contact Form 7 WordPress plugin, prior to version 6.2.4, fails to validate the type or extension of files uploaded via a form file field. Coupled with a flaw in the temporary-file cleanup routine, this allows an unauthenticated user to place an arbitrary file on the server’s filesystem. On a default Debian or Ubuntu Apache setup that exposes directory listings and treats .phar files as executable PHP, the attacker can upload a malicious .phar or PHP file and trigger its execution, resulting in full remote code execution. Where directory listings are disabled or .htaccess overrides are enabled, the vulnerability still permits an unauthenticated user to write any file to the uploads directory; if the web server serves the file as active content such as HTML or SVG, the attacker can inject scripts or other dangerous content, potentially allowing defacement or data exfiltration.

Affected Systems

WordPress sites using the Contact Form 7 plugin version 6.2 through 6.2.3 are affected. The issue arises in any deployment of this plugin that allows file uploads through its contact form fields, regardless of theme or other plugins. The impact is most severe on installations that run default Apache configurations on Debian or Ubuntu, but also applies to nginx or Apache setups with .htaccess overrides where arbitrary files can still be served.

Risk and Exploitability

The exploit is straightforward: an attacker can submit a form that includes a file with a chosen filename and MIME type. Because the plugin does not enforce file type restrictions, a malicious payload can be uploaded. Once stored, the file remains on disk due to the missing cleanup, providing a persistence mechanism. The vulnerability can lead to remote code execution if the uploaded file is executable by the web server, or to the delivery of active content that can compromise the site’s users. No EPSS value is available, and the vulnerability is not listed in the CISA KEV catalog; however, the potential for RCE combined with the lack of any mitigation policy makes the risk high. Attackers need only send a crafted HTTP request to the contact form endpoint, which is generally accessible on a public‑facing site.

Generated by OpenCVE AI on November 8, 2026 at 07:23 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Contact Form 7 to version 6.2.4 or later. The vendor’s release notes indicate that file validation and temporary‑file cleanup are fixed.
  • Configure the plugin or WordPress to restrict allowed upload MIME types and file extensions, and enforce strict validation of uploaded filenames. This reduces the chances of a malicious file being accepted.
  • After uploading, confirm that the web server is configured to prevent execution of files in the uploads directory; apply a .htaccess or equivalent rule to turn off PHP execution and directory listing.

Generated by OpenCVE AI on November 8, 2026 at 07:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 08 Nov 2026 06:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Contact Form 7 6.2 - 6.2.3 - Unauthenticated Arbitrary File Upload via Invalid UTF-8 Filename
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: WPScan

Published:

Updated: 2026-11-08T06:00:29.249Z

Reserved: 2026-10-21T13:35:40.479Z

Link: CVE-2026-114432

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-08T06:17:04.807

Modified: 2026-11-08T06:17:04.807

Link: CVE-2026-114432

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-08T07:30:11Z

Weaknesses

No weakness.