Contact Form 7 <= 5.8.3 - Authenticated (Editor+) Arbitrary File Upload

6.6
Unrestricted Upload of File with Dangerous Type
CVE CVE-2023-6449
CVSS 6.6 (Medium)
Publicly Published November 30, 2023
Last Updated December 1, 2023
Researcher István Márton - Wordfence

Description

The Contact Form 7 plugin for WordPress is vulnerable to arbitrary file uploads due to insufficient file type validation in the 'validate' function and insufficient blocklisting on the 'wpcf7_antiscript_file_name' function in versions up to, and including, 5.8.3. This makes it possible for authenticated attackers with editor-level capabilities or above to upload arbitrary files on the affected site's server, but due to the htaccess configuration, remote code cannot be executed in most cases. By default, the file will be deleted from the server immediately. However, in some cases, other plugins may make it possible for the file to live on the server longer. This can make remote code execution possible when combined with another vulnerability, such as local file inclusion.

References

Share

Vulnerability Details for Contact Form 7

Software Type Plugin
Software Slug contact-form-7 (view on wordpress.org)
Patched? Yes
Remediation Update to version 5.8.4, or a newer patched version
Affected Version
  • <= 5.8.3
Patched Version
  • 5.8.4

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation