Rapid7

vulnerability

WordPress Plugin: wp-file-upload: CVE-2021-24962: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Severity
7
CVSS
(AV:N/AC:L/Au:S/C:P/I:P/A:P)
Published
Mar 1, 2022
Added
May 15, 2025
Modified
Apr 30, 2026

Description

The WordPress File Upload Free and Pro WordPress plugins before 4.16.3 allow users with a role as low as Contributor to perform path traversal via a shortcode argument, which can then be used to upload a PHP code disguised as an image inside the auto-loaded directory of the plugin, resulting in arbitrary code execution.

Solution

wp-file-upload-plugin-cve-2021-24962
Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.