Vulnerability record · CVE-2021-24155 · published 5 April 2021
CVE-2021-24155: WordPress Backup Guard plugin arbitrary file upload leads to RCE
Backup Guard · Backup Guard
The Backup Guard WordPress plugin before 1.6.0 failed to validate that imported files were of the expected SGBP format and extension. This lets an admin-level user upload arbitrary files, including PHP, into the site. Because the uploaded PHP can be executed, the flaw turns a privileged account into remote code execution on the web server.
Description
The WordPress Backup and Migrate Plugin – Backup Guard WordPress plugin before 1.6.0 did not ensure that the imported files are of the SGBP format and extension, allowing high privilege users (admin+) to upload arbitrary files, including PHP ones, leading to RCE.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Automated analysis
high priorityRemote code execution with public exploit code and very high EPSS, but it requires an already privileged admin+ account, which limits the attack population.
What it is
The Backup Guard WordPress plugin before 1.6.0 failed to validate that imported files were of the expected SGBP format and extension. This lets an admin-level user upload arbitrary files, including PHP, into the site. Because the uploaded PHP can be executed, the flaw turns a privileged account into remote code execution on the web server.
Impact
An attacker with admin+ access gains remote code execution on the WordPress host, enabling full compromise of the site and potentially the underlying server.
Attack surface
Reached over the network through the plugin's import functionality; the CVSS vector requires high privileges (PR:H) and no user interaction (UI:N). Only authenticated admin+ users can trigger it.
Exploitation
Public exploit code is referenced (Packet Storm and WPScan entries tagged Exploit), and EPSS is very high at 0.841 (99.68th percentile), though the CVE is not listed in CISA KEV.
What to do
- Update the Backup Guard plugin to version 1.6.0 or later.
- Restrict admin-level accounts to the minimum necessary personnel and enforce strong authentication.
- Disable or remove the plugin if it is not actively needed.
- Monitor and restrict file uploads to expected backup formats and block PHP execution in upload directories.
Detection
- Alert on PHP files appearing in WordPress upload or backup directories.
- Review plugin import/restore activity logs for unexpected or malformed file uploads.
- Monitor web server logs for POST requests to Backup Guard import endpoints followed by access to newly written PHP files.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://packetstormsecurity.com/files/163382/WordPress-Backup-Guard-1.5.8-Shell-Upload.html | ExploitThird Party AdvisoryVDB Entry |
| http://packetstormsecurity.com/files/163623/WordPress-Backup-Guard-Authenticated-Remote-Code-Execution.html | ExploitThird Party AdvisoryVDB Entry |
| https://wpscan.com/vulnerability/d442acac-4394-45e4-b6bb-adf4a40960fb | ExploitThird Party Advisory |
| http://packetstormsecurity.com/files/163382/WordPress-Backup-Guard-1.5.8-Shell-Upload.html | ExploitThird Party AdvisoryVDB Entry |
| http://packetstormsecurity.com/files/163623/WordPress-Backup-Guard-Authenticated-Remote-Code-Execution.html | ExploitThird Party AdvisoryVDB Entry |
| https://wpscan.com/vulnerability/d442acac-4394-45e4-b6bb-adf4a40960fb | ExploitThird Party Advisory |
Track CVE-2021-24155 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-24155), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.