CVE-2026-9834
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe 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 summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe WP Database Backup plugin for WordPress contains an OS command injection vulnerability in the mysqldump() function where the wp_db_exclude_table POST parameter is directly concatenated into a shell command without escapeshellarg() sanitization. Although sanitize_text_field() is applied, it only removes HTML and leaves shell metacharacters like ;, |, `, and $() intact. Since the value is stored in the WordPress options table and executed during every backup operation, authenticated administrators can achieve persistent remote code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Verify WP Database Backup plugin is installedIn WordPress admin, go to Plugins > Installed Plugins and look for 'WP Database Backup' or check the filesystem at /wp-content/plugins/ for a folder named 'wp-database-backup' or similar. Retrieve the version from the plugin header comment in the main PHP file.Affected if The plugin is installed and active.
-
Retrieve the stored wp_db_exclude_table option valueAccess the WordPress database (via phpMyAdmin or wp-cli: wp db query "SELECT option_value FROM wp_options WHERE option_name='wp_db_exclude_table'") and examine the value stored in the options table for the wp_db_exclude_table parameter.Affected if The option exists and contains shell metacharacters like ; | ` $() or other unexpected characters.
-
Inspect the mysqldump function source codeLocate the plugin's main PHP file and find the mysqldump() function. Search for the code that handles the wp_db_exclude_table parameter and verify whether escapeshellarg() is applied before shell command concatenation.Affected if The parameter is concatenated into the shell command without escapeshellarg() sanitization.
-
Check backup configuration for custom exclude table settingsNavigate to the plugin's backup settings page in WordPress admin (usually under Tools > Database Backup) and examine the 'Exclude Tables' or similar field where users can specify tables to exclude from the backup.Affected if The plugin allows user input for table exclusion that gets passed to mysqldump without proper shell escaping.
A defender is affected if the WP Database Backup plugin is installed, the wp_db_exclude_table option contains shell metacharacters, and the mysqldump function does not use escapeshellarg() on this parameter before command execution.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedApply escapeshellarg() to the wp_db_exclude_table parameter before embedding it in the mysqldump command string, or refactor to use parameterized approaches that avoid shell execution entirely.
Latest version available on wordpress.org (verify version > 7.11 contains the security fix)
- 1. Navigate to the WordPress admin dashboard
- 2. Go to Plugins > Installed Plugins
- 3. Locate the 'WP Database Backup' plugin (also known as 'Backup for WP')
- 4. Check the current installed version (should be 7.11 or lower)
- 5. If an update is available, click 'Update Now' to install the latest version
- 6. Alternatively, download the latest version from wordpress.org/plugins/wp-database-backup/ and upload via Plugins > Add New > Upload Plugin
- 7. After updating, verify the `wp_db_exclude_table` parameter is now properly sanitized with `escapeshellarg()` in the plugin code at `includes/admin/class-wpdb-admin.php`
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,648.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-9834 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-9834 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data