CVE-2026-7693
Received Received - Intake

OS Command Injection in Backup Migration WordPress Plugin

Vulnerability report for CVE-2026-7693, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-05

Last updated on: 2026-08-05

Assigner: Wordfence

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

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-05
Last Modified
2026-08-05
Generated
2026-08-05
AI Q&A
2026-08-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
wp_migration backup_migration 2.1.5.1
backup_migration backup_migration to 2.1.5.1 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-77 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The Backup Migration plugin for WordPress has a flaw where the 'file' parameter in the restoreBackup function is not properly sanitized. This allows authenticated attackers with high privileges to inject and execute arbitrary operating system commands on the server.

Detection Guidance

Check for unauthorized command execution attempts in web server logs, particularly for the Backup Migration plugin's restoreBackup() AJAX handler. Look for POST requests to /wp-admin/admin-ajax.php with the action parameter set to restoreBackup and suspicious file parameters containing shell metacharacters or commands.

Impact Analysis

An attacker could take full control of your WordPress server, steal sensitive data, install malware, or disrupt services. Since the attack requires admin-level access, compromised accounts pose a serious risk.

Compliance Impact

This vulnerability could lead to unauthorized access to personal or health data, violating GDPR or HIPAA requirements. Organizations may face legal penalties, fines, or reputational damage due to data breaches.

Mitigation Strategies

Immediately update the Backup Migration plugin to the latest version beyond 2.1.5.1. If updating is not possible, disable the plugin entirely. Remove Administrator-level access for any untrusted users and revoke the plugin's do_backups capability from non-admin roles. Monitor for signs of exploitation in system logs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-7693. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart