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.

Learn more about Arbitrary File Upload vulnerabilities and how to prevent them.

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

Recent vulnerabilities in Contact Form 7

# Title CVE ID CVSS Researchers Date
1 Contact Form 7 <= 6.0.5 - Order Replay Vulnerability CVE-2025-3247 5.3 Asaf Mozes April 15, 2025
2 Contact Form 7 <= 5.9.4 - Unauthenticated Open Redirect CVE-2024-4704 6.1 William Bastos June 5, 2024
3 Contact Form 7 <= 5.9 - Reflected Cross-Site Scripting CVE-2024-2242 6.1 Asaf Mozes March 13, 2024
4 Contact Form 7 <= 5.3.1 - Arbitrary File Upload via Bypass CVE-2020-35489 8.1 Jinson Varghese Behanan December 17, 2020
5 Contact Form 7 <= 5.0.3 - Authorization Bypass CVE-2018-20979 6.3 Simon Scannell September 4, 2018
6 Contact Form 7 <= 3.5.2 - Arbitrary File Upload 9.8 Eugene Dokukin August 1, 2014
7 Contact Form 7 < 3.7.2 - CAPTCHA Bypass CVE-2014-2265 5.3 Hannah Sharp February 26, 2014

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