# Search & Replace <= 3.2.3 - Authenticated (Administrator+) SQL Injection via Table Selection

- **ID:** WPSEC-2026-3084
- **Plugin:** Search & Replace (`search-and-replace`), https://wordpress.org/plugins/search-and-replace/
- **Affected versions:** from 3.2.0 before 3.2.4
- **Fixed in:** 3.2.4 (Update to 3.2.4 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-13)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/search-and-replace
- **Fix released:** 2026-11-12
- **Published:** 2026-11-13
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3084/

## Description

The Search & Replace plugin for WordPress is vulnerable to SQL Injection via the 'select_tables' parameter in all versions up to, and including, 3.2.3. This is due to incomplete validation of the submitted table names: the check looked only at sequential numeric indexes, so entries submitted under other keys were never compared against the list of available tables, and the table names were then concatenated unquoted into DESCRIBE, SELECT and UPDATE queries. This makes it possible for authenticated attackers with administrator-level access, such as a sub-site administrator on a multisite installation, to inject SQL and to read or modify tables outside their own site, such as the network users table.

## References

- https://wpsec.com/vuln/WPSEC-2026-3084/
- https://plugins.svn.wordpress.org/search-and-replace/tags/3.2.4/
- https://wordpress.org/plugins/search-and-replace/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3084/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
