Vulnerabilities / Database Cleaner / WPSEC-2026-2174

Database Cleaner <= 1.4.7 - Authenticated (Administrator+) SQL Injection via Table Name

Medium 6.5 CWE-89Fixed in 1.4.8
ID
WPSEC-2026-2174
Plugin
Database Cleaner: Cleanup, Optimization & Repair (database-cleaner)
Affected
all versions before 1.4.8
Remediation
Update to 1.4.8 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
Weakness
CWE-89
Usage
Plugin Low · Affected versions None seen among sites WPSec scans, 2026-10-31
Attack surface
Database Cleaner on WPSec AttackSurface
Fix released
Published

Description

The Database Cleaner plugin for WordPress is vulnerable to SQL Injection via the 'tables' parameter of the delete_tables REST endpoint in all versions up to, and including, 1.4.7. This is due to the table name being interpolated unescaped inside backticks in a DROP TABLE query, and to a deletable-table check that only recognises core tables carrying the current site's prefix. This makes it possible for authenticated attackers with administrator-level access to break out of the identifier quoting with a crafted name and drop arbitrary database tables, including WordPress core tables. On multisite networks, site administrators can drop the network-wide tables (such as users and usermeta) and the tables of other sites in the network, causing data loss across the whole network.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0