WP Database Backup <= 7.11 - Authenticated (Administrator+) OS Command Injection via 'wp_db_exclude_table' Parameter
Strategic Overview
- Status
- Patched in 7.12
- Affected Version
<= 7.11- CVSS
- 7.2High
- Weakness type
- CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CVE
CVE-2026-9834
At a glance
CVE-2026-9834 is a high-severity Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in the WP Database Backup WordPress plugin, affecting versions <= 7.11. 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 7.12; sites on affected versions should update now. Disclosed July 2026, reported by Irwan Kusuma.
Vulnerability Overview
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.
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 7.12, or a newer patched version
How does WordSec protect against this?
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: WP Database Backup 7.12 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in WP Database Backup – Unlimited Database & Files Backup by Backup for WP
- 9.8CVE-2019-25224: WP Database Backup < 5.2 OS Command Injection
CVE-2019-25224 - 9.8WP Database Backup <= 5.1.2 Settings Update to Remote Code Execution
- 8.8WP Database Backup <= 4.3.5 Cross-Site Request Forgery
- 8.8CVE-2016-10874: WP Database Backup <= 4.3.2 Cross-Site Request Forgery
CVE-2016-10874 - 8.8CVE-2016-10876: WP Database Backup <= 4.3 Cross-Site Request Forgery
CVE-2016-10876 - 7.5CVE-2024-12330: WP Database Backup Database Back-Up Exposure
CVE-2024-12330 - 7.5CVE-2020-7241: WP Database Backup <= 5.5 Information Disclosure
CVE-2020-7241 - 6.4WP Database Backup < 3.4 Stored Cross-Site Scripting
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C