Backup Migration <= 2.1.5.1 - Authenticated (Administrator+) OS Command Injection via 'file' Parameter

7.2
Improper Neutralization of Special Elements used in a Command ('Command Injection')
CVE CVE-2026-7693
CVSS 7.2 (High)
Publicly Published August 4, 2026
Last Updated August 5, 2026
Researcher at1as - Self-Employed

Description

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

References

Share

Vulnerability Details for Backup Migration

Software Type Plugin
Software Slug backup-backup (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.1.5.2, or a newer patched version
Affected Version
  • <= 2.1.1
Patched Version
  • 2.1.5.2

Recent vulnerabilities in Backup Migration

# Title CVE ID CVSS Researchers Date
1 Backup Migration <= 2.1.6 - Authenticated (Administrator+) Privilege Escalation CVE-2026-18216 4.7 Thanh Lam Tang August 13, 2026
2 BackupBliss – Backup & Migration with Free Cloud Storage <= 2.1.1 - Unauthenticated Information Exposure CVE-2026-39480 5.3 ch4r0n April 8, 2026
3 Backup Migration <= 2.0.0 - Missing Authorization to Unauthenticated Backup Upload to Offline Storage CVE-2025-14944 5.3 0N0ise April 6, 2026
4 Backup Migration <= 1.4.9 - Information Exposure to Unauthenticated Back-up Download CVE-2025-12394 7.5 ymmfty0 November 3, 2025
5 Backup Migration <= 1.4.6 - Unauthenticated PHP Object Injection via 'recursive_unserialize_replace' CVE-2024-10932 8.8 Webbernaut January 3, 2025
6 Backup Migration <= 1.4.3 - Information Exposure via Log Files CVE-2024-32686 5.3 emad April 17, 2024
7 Inisev Analyst Module <= Various Versions - Missing Authorization CVE-2024-31435 4.3 Dhabaleshwar Das April 10, 2024
8 Backup Migration 1.0.8 - 1.3.9 - Remote File Inclusion via content-dir CVE-2023-6971 8.1 Hiroho Shimada December 22, 2023
9 Backup Migration <= 1.3.9 - Authenticated (Admin+) OS Command Injection via url CVE-2023-7002 7.2 Françoa Taffarel December 22, 2023
10 Backup Migration <= 1.3.9 - Unauthenticated Path Traversal to Arbitrary File Deletion CVE-2023-6972 9.8 Hiroho Shimada December 22, 2023

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation