Backup Migration <= 2.1.5.1 - Authenticated (Administrator+) OS Command Injection via 'file' Parameter
Strategic Overview
- Status
- Patched in 2.1.5.2
- Affected Plugin
- Backup Migration
- Affected Version
<= 2.1.1- CVSS
- 7.2High
- Weakness type
- CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CVE
CVE-2026-7693
At a glance
CVE-2026-7693 is a high-severity Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in the Backup Migration WordPress plugin, affecting versions <= 2.1.1. It carries a CVSS score of 7.2 (reachable over the network; low attack complexity; high confidentiality, integrity, availability impact). Exploitation requires an authenticated account at Administrator level or above. The issue is fixed in version 2.1.5.2; sites on affected versions should update now. Disclosed August 2026, reported by at1as.
Vulnerability Overview
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`.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Remediation
Update to version 2.1.5.2, or a newer patched version
How WordSec helps
An attacker needs Administrator access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: Backup Migration 2.1.5.2 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in Backup Migration
- 9.8CVE-2023-6972: Backup Migration Path Traversal to Arbitrary File
CVE-2023-6972 - 9.8CVE-2023-6553: Backup Migration <= 1.3.7 Remote Code Execution
CVE-2023-6553 - 9.8CVE-2023-6271: Backup Migration <= 1.3.5 Info Exposure
CVE-2023-6271 - 8.8CVE-2024-10932: Backup Migration <= 1.4.6 PHP Object Injection
CVE-2024-10932 - 8.1CVE-2023-6971: Backup Migration 1.0.8 1.3.9 - Remote File Inclusion
CVE-2023-6971 - 7.5CVE-2025-12394: Backup Migration Information Exposure to
CVE-2025-12394 - 7.5CVE-2023-6266: Backup Migration Arbitrary Backup Download to Info
CVE-2023-6266 - 7.5CVE-2023-54346: Backup Migration <= 1.2.8 Info Exposure
CVE-2023-54346
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C