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.6% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The WP Database Backup plugin for WordPress allows authenticated attackers with administrator-level or higher privileges to inject arbitrary operating system commands. The flaw arises because the value supplied for the wp_db_exclude_table parameter is not properly escaped in the mysqldump command string, while other related arguments receive appropriate sanitization. This is a classic command injection (CWE‑77) vulnerability. The only applied filtering strips HTML tags but leaves shell metacharacters such as ;, |, `, and $() intact. This allows attackers to execute arbitrary commands when a backup operation runs, potentially leading to full remote code execution on the hosting server.

Affected Systems

This vulnerability affects all installations of the WP Database Backup – Unlimited Database & Files Backup by Backup for WP plugin with versions 7.11 or older. Based on available information, it is inferred that the plugin is widely used within WordPress sites, and any instance that has retained settings for wp_db_exclude_table prior to the fix contains the potentially malicious value stored in the options table.

Risk and Exploitability

The CVSS score of 7.2 indicates a serious severity, and the EPSS score of 1.588% shows a modest likelihood of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog, but it provides a direct path for an attacker who can authenticate as an administrator to achieve remote code execution. The exploit requires only that the attacker has the ability to submit or modify the wp_db_exclude_table value via the plugin’s settings interface; the malicious payload is stored and later used during backup operations. An attacker could inject commands such as shell metacharacters to execute arbitrary code, read or delete files, or exfiltrate data.

Generated by OpenCVE AI on July 22, 2026 at 13:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the WP Database Backup plugin to a version newer than 7.11 where wp_db_exclude_table values are properly escaped, addressing the CWE-77 command injection flaw.
  • If an upgrade cannot be performed immediately, restrict or remove administrator-level access to the plugin’s backup settings so that only trusted users can modify wp_db_exclude_table values.
  • Scan the WordPress options table for wp_db_exclude_table values containing shell metacharacters or suspicious content and remove those entries.

Generated by OpenCVE AI on July 22, 2026 at 13:51 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

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-22T14:00:04Z

Weaknesses
  • CWE-77

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