Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise WordPress admin credentials
-
DeliveryAuthenticate to WordPress admin session
-
ExploitPOST crafted `file` parameter with shell metacharacters to restoreBackup() handler
-
Executionesc_attr() fails to strip metacharacters from payload
-
Persistexec() executes injected OS command as web-server user
-
ImpactAchieve arbitrary command execution on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated session with WordPress Administrator-level privileges OR any user account that has been explicitly granted the plugin's custom |
| Impact | The CVSS 3.1 score of 7.2 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) accurately characterizes a high-severity but access-gated vulnerability. The network attack vector with low complexity and no user interaction means exploitation is technically trivial once the prerequisite access is met, but PR:H (high privileges) is the critical limiting factor: an attacker must already control a WordPress administrator account or possess the non-default |
| Exploit ScenarioDerived | An attacker who has obtained valid WordPress administrator credentials - through credential stuffing, phishing, or lateral movement from a compromised account - sends a crafted POST request to the site's |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
OS command injection in the Backup Migration WordPress plugin (all versions through 2.1.5.1) allows authenticated attackers holding Administrator-level access - or any user granted the plugin's custom do_backups capability - to execute arbitrary operating-system commands as the web-server user. The flaw stems from misuse of esc_attr(), an HTML sanitizer, as a shell sanitizer in the restoreBackup() AJAX handler, enabling shell metacharacter injection into an exec() call. This represents an incomplete remediation of CVE-2023-7002; the equivalent fix applied to handleQuickMigration() was never ported to the $backupName variable path. No public exploit has been identified at time of analysis, and the vulnerability is not listed in the CISA KEV catalog.
RemediationAI
Upgrade to Backup Migration version 2.1.5.2, which is confirmed by the WordPress plugin changeset at https://plugins.trac.wordpress.org/changeset?new=3540041%40backup-backup%2Ftags%2F2.1.5.2&old=3512153%40backup-backup%2Ftags%2F2.1.5.1; note that the fix version is inferred from this upstream commit changeset and has not been independently confirmed via a separate vendor security advisory. The correct fix pattern, already applied to handleQuickMigration() in CVE-2023-7002, is to apply rawurlencode(), explicitly strip remaining shell metacharacters, and double-quote all arguments passed to exec(). As a compensating control prior to patching, administrators can deactivate the Backup Migration plugin entirely and use an alternative backup solution, accepting the loss of backup/restore functionality. Restricting WordPress administrator account access - enforcing strong passwords, enabling MFA, and auditing which users hold the do_backups capability - materially reduces the exploitability of this flaw since PR:H is the binding precondition. Web application firewalls can be configured to block POST requests to the restoreBackup AJAX action (action=bmi_restore_backup or equivalent), though WAF bypasses for command injection payloads are common and this should not be treated as a primary control.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the restoreBackup() AJAX handler within includes/ajax.php (confirmed at lines 3019-3025 and 3422/3444 of the 2.1.5.1 tag). The handler retrieves a file value from $_POST, applies WordPress's esc_attr() function - which encodes HTML special characters such as <, >, and " but leaves shell metacharacters like ;, |, ` `, $(), and & intact - and then concatenates the unsanitized result, without quoting, into a shell string of the form php-cli -f … bmi_restore <file> <remote> passed directly to PHP's exec(). CWE-77 (Improper Neutralization of Special Elements used in a Command) precisely describes this root cause: the application passes data to a downstream shell component without properly neutralizing elements that could alter the intended command. CVE-2023-7002 had already exposed the same pattern in the $_POST['url'] path of handleQuickMigration(), where the fix applied rawurlencode(), explicit shell-metacharacter stripping, and double-quoting around the argument in exec(). Those mitigations were never backported to the $backupName code path. The CPE cpe:2.3:a:inisev:backup_migration:*:*:*:*:*:*:*:*` confirms Inisev's plugin as the sole affected product.
Know when Backup Migration gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
AV:N because the AJAX handler is remotely invocable; PR:H because Administrator or do_backups capability is a hard prerequisite; S:U because command execution is bounded to the web-server user with no cross-scope pivot described.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The Backup Migration plugin for WordPress is vulnerable to OS Command Injection in all versions up to, and including, 2.1.5.1 due to insufficient sanitization of the file POST parameter on the restoreBackup() AJAX handler. The handler applies esc_attr() - an HTML-context sanitizer that does not strip shell metacharacters - and concatenates the result, unquoted, into a php-cli -f … bmi_restore <file> <remote> command passed to exec(). This makes it possible for authenticated attackers, with Administrator-level access (or any user granted the plugin's do_backups capability) and above, to execute arbitrary OS commands as the web-server user, bypassing WordPress hardening constants such as DISALLOW_FILE_EDIT and DISALLOW_FILE_MODS that would otherwise prevent code execution from the admin UI. This is an incomplete fix of CVE-2023-7002, which patched the same pattern only in the $_POST['url'] path of handleQuickMigration(); the equivalent mitigations (rawurlencode() + explicit shell-metachar replacement + double-quoting in exec()) were never applied to $backupName.
Executive ViewAI
The Backup Migration WordPress plugin (versions through 2.1.5.1) contains an OS command injection vulnerability allowing authenticated users with Administrator access or the custom 'do_backups' capability to execute arbitrary system commands on your web server, with no public exploit identified at time of analysis. This represents an incomplete remediation of CVE-2023-7002 and poses significant risk to server integrity and sensitive backup data. With no vendor-released patch available, immediate action is required to restrict access and implement protective controls.
No vendor-released patch identified at time of analysis. Deploy: (1) restrict 'do_backups' capability to authenticated users with explicit business justification and quarterly access reviews; (2) enforce Administrator-level access to only trusted personnel; (3) implement WAF rules to monitor, log, and rate-limit backup restoration endpoints; (4) configure the web server process runtime to execute with minimal file system and system call privileges; (5) enable real-time audit logging of all command execution attempts within the web server process; (6) conduct weekly log reviews of backup restoration activity and user capability changes; (7) evaluate disabling the plugin entirely if backup restoration is not operationally critical to business continuity.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Backup Migration
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Backup Migration plugin for WordPress is vulnerable to unauthorized access of data due to insufficient path and file
The Backup Migration plugin for WordPress is vulnerable to OS Command Injection in all versions up to, and including, 1.
The Backup Migration WordPress plugin before 1.3.6 stores in-progress backups information in easy to find, publicly-acce
The Backup Migration plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 1.3.9 vi
The Backup Migration plugin for WordPress is vulnerable to Remote File Inclusion in versions 1.0.8 to 1.3.9 via the 'con
Several plugins for WordPress by Inisev are vulnerable to Cross-Site Request Forgery to unauthorized installation of plu
Unauthenticated sensitive data exposure in the Inisev Backup Migration WordPress plugin (versions through 2.1.1) allows
Authenticated Persistent Cross-Site Scripting (XSS) vulnerability discovered in WordPress Backup Migration plugin <= 1.1
Several plugins for WordPress by Inisev are vulnerable to unauthorized installation of plugins due to a missing capabili
EUVD-2026-53182
GHSA-982q-x59v-3xjj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB