CVE-2026-9834 HIGH

CVE-2026-9834: WP Database Backup <= 7.11 - Authenticated (Administrator+) OS Command Injection via 'wp_db_exclude_table' Parameter

Vendor Databasebackup
Product WP Database Backup – Unlimited Database & Files Backup by Backup for WP
Weakness CWE-77
Published July 2, 2026
Last update July 2, 2026

CVSS base score

7.2/10
Attack vector Network
Attack complexity Low
Privileges required High
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

WP Database Backup versions 7.11 and earlier contain a vulnerability that allows high-privilege users to read sensitive data, modify site content, or disrupt service. The flaw requires administrator-level access to exploit. Site owners should update to a version newer than 7.11 to mitigate risk.

What an attacker can do

03Attacker Capabilities

Read sensitive data, modify site content, or disrupt service if they have admin access.

Potential impact on your site

04Site Impact

An admin account compromise could expose database contents, alter posts/pages, or cause downtime.

Conditions required to exploit

05Prerequisites

Attacker must have administrator-level privileges on the WordPress site.

Key dates

06Disclosure timeline

July 2, 2026 CVE published