Description
The WP Database Backup – Unlimited Database & Files Backup by Backup for WP plugin for WordPress is vulnerable to OS Command Injection in all versions up to and including 7.11 via the `wp_db_exclude_table` parameter. This is due to the direct concatenation of user-supplied `$_POST['wp_db_exclude_table']` values into the `mysqldump` shell command string in the `mysqldump()` function of `includes/admin/class-wpdb-admin.php` without wrapping them in `escapeshellarg()`—every other argument in the same command (DB_USER, DB_PASSWORD, host, filename, DB_NAME) is properly escaped, making the exclude-table values the sole exception—and because the only applied filtering, `sanitize_text_field()` via `recursive_sanitize_text_field()`, strips HTML tags but leaves shell metacharacters such as `;`, `|`, `` ` ``, and `$()` intact. This makes it possible for authenticated attackers, with administrator-level access and above, to execute arbitrary operating system commands on the server, potentially enabling full remote code execution. The injection is stored: malicious values submitted through the plugin settings form are persisted to the WordPress options table via `update_option('wp_db_exclude_table')` and later retrieved with `get_option()` and passed unsanitized to `shell_exec()` whenever a backup operation runs.
Published: 2026-07-02
Score: 7.2 High
EPSS: 1.5% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The WP Database Backup plugin for WordPress is vulnerable to OS Command Injection in all releases up to 7.11. Malicious users with administrator or higher privileges can inject shell metacharacters into the 'wp_db_exclude_table' parameter. Because the plugin concatenates this value directly into a mysqldump call without escaping, the attacker can execute arbitrary commands on the hosting server. The vulnerability is stored: values submitted through the plugin form are saved in the options table and reused each time a backup is performed, enabling persistence.

Affected Systems

This flaw affects every installation of the WP Database Backup – Unlimited Database & Files Backup by Backup for WP plugin running version 7.11 or older on a WordPress site. In such environments, any administrator or higher‑level role that can modify the backup settings is at risk.

Risk and Exploitability

The CVSS score of 7.2 marks the flaw as high severity, but the EPSS rating of 2% indicates a relatively low but non‑zero likelihood of exploitation in the wild. The vulnerability is not directly exploitable by unauthenticated users; an attacker must first acquire legitimate administrator credentials or gain elevated privileges. Once the malicious 'wp_db_exclude_table' value is stored, a subsequent backup triggers the injection, allowing the attacker to run arbitrary OS commands. The plugin is not listed in CISA’s KEV catalog.

Generated by OpenCVE AI on August 1, 2026 at 22:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to plugin version 7.12 or later where the wp_db_exclude_table value is safely escaped.
  • If an upgrade is not possible immediately, limit the ability to edit backup settings to trusted administrators or remove the wp_db_exclude_table option entirely for non‑trusted users.
  • Scan the WordPress options table for entries named wp_db_exclude_table that contain shell metacharacters, remove or sanitize them, and verify that subsequent backup operations no longer execute injected commands.

Generated by OpenCVE AI on August 1, 2026 at 22:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Databasebackup
Databasebackup wp Database Backup – Unlimited Database & Files Backup By Backup For Wp
Wordpress
Wordpress wordpress
Vendors & Products Databasebackup
Databasebackup wp Database Backup – Unlimited Database & Files Backup By Backup For Wp
Wordpress
Wordpress wordpress

Sat, 04 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 02 Jul 2026 09:45:00 +0000

Type Values Removed Values Added
Description The WP Database Backup – Unlimited Database & Files Backup by Backup for WP plugin for WordPress is vulnerable to OS Command Injection in all versions up to and including 7.11 via the `wp_db_exclude_table` parameter. This is due to the direct concatenation of user-supplied `$_POST['wp_db_exclude_table']` values into the `mysqldump` shell command string in the `mysqldump()` function of `includes/admin/class-wpdb-admin.php` without wrapping them in `escapeshellarg()`—every other argument in the same command (DB_USER, DB_PASSWORD, host, filename, DB_NAME) is properly escaped, making the exclude-table values the sole exception—and because the only applied filtering, `sanitize_text_field()` via `recursive_sanitize_text_field()`, strips HTML tags but leaves shell metacharacters such as `;`, `|`, `` ` ``, and `$()` intact. This makes it possible for authenticated attackers, with administrator-level access and above, to execute arbitrary operating system commands on the server, potentially enabling full remote code execution. The injection is stored: malicious values submitted through the plugin settings form are persisted to the WordPress options table via `update_option('wp_db_exclude_table')` and later retrieved with `get_option()` and passed unsanitized to `shell_exec()` whenever a backup operation runs.
Title WP Database Backup <= 7.11 - Authenticated (Administrator+) OS Command Injection via 'wp_db_exclude_table' Parameter
Weaknesses CWE-77
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Databasebackup Wp Database Backup – Unlimited Database & Files Backup By Backup For Wp
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-02T12:24:43.250Z

Reserved: 2026-05-28T12:40:52.573Z

Link: CVE-2026-9834

cve-icon Vulnrichment

Updated: 2026-07-02T12:24:39.662Z

cve-icon NVD

Status : Deferred

Published: 2026-07-02T10:16:29.353

Modified: 2026-07-02T13:58:56.870

Link: CVE-2026-9834

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T22:15:03Z

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')