CVE-2023-6449

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

mediumUnrestricted Upload of File with Dangerous Type
6.6
CVSS Score
6.6
CVSS Score
medium
Severity
5.8.4
Patched in
54d
Time to patch

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.

CVSS Vector Breakdown

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
High
Confidentiality
High
Integrity
High
Availability

Technical Details

Affected versions<=5.8.3
PublishedNovember 30, 2023
Last updatedJanuary 22, 2024
Affected plugincontact-form-7

What Changed in the Fix

Changes introduced in v5.8.4

Trac

Check if your site is affected.

Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.