WordPress security changelog
HIGH CVE-2021-24962 Modified

Wordpress File Upload: Filesystem traversal

Wordpress File Upload is affected by filesystem traversal. Exposure depends on how the affected operation is made reachable by the site. A crafted path can escape the intended directory and reach files or directories elsewhere on the server.

CVE / CNA score 8.8 CVSS · contact@wpscan.com
NVD score 8.8 CVSS 3.1 · nvd@nist.gov
Component
Wordpress File Upload
Plugin slug
wordpress-file-upload
Affected
See vendor advisory
Safe version
See mitigation notes
Published
Mar 28, 2022
Weakness
CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

This CVE was published Mar 28, 2022 and is one of 15 known issues for this plugin.

Update, patch or deactivate.

Update Wordpress File Upload to a release outside the affected range, or disable and remove it until a fixed version is available.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical 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.

NVD vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary and upstream sources