CVE-2022-2431

Download Manager <= 3.2.50 - Authenticated (Contributor+) Arbitrary File Deletion

State
Published
Severity
8.1 High
Published
Sep 6, 2022
Updated
Jan 31, 2025
Reserved
Jul 15, 2022

Read the record on cve.org

Description

The Download Manager plugin for WordPress is vulnerable to arbitrary file deletion in versions up to, and including 3.2.50. This is due to insufficient file type and path validation on the deleteFiles() function found in the ~/Admin/Menu/Packages.php file that triggers upon download post deletion. This makes it possible for contributor level users and above to supply an arbitrary file path via the 'file[files]' parameter when creating a download post and once the user deletes the post the supplied arbitrary file will be deleted. This can be used by attackers to delete the /wp-config.php file which will reset the installation and make it possible for an attacker to achieve remote code execution on the server.

Scores

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HWordfence

Weaknesses

  • CWE-73 External Control of File Name or Path

Affected Products

ProductVersions
Download Managerdownload-manager
  • 3.2.50 through 3.2.50Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.