SQL injection in WordPress - #VU168248

 

SQL injection in WordPress - #VU168248

Published: November 19, 2026


Vulnerability identifier: #VU168248
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to read database data without authorization if a plugin or theme passes untrusted nested meta_query input to WordPress.

The vulnerability exists due to insufficient sanitization in WP_Meta_Query when it incorporates relation values from certain nested clauses into generated SQL. A remote attacker can supply input through a plugin or theme that exposes this query functionality to read database data through SQL injection.


Affected software

WordPress

Remediation

Install security update from vendor's website.

WordPress - addressed in versions 4.7.40, 4.8.35, 4.9.36, 5.0.32, 5.1.29, 5.2.31, 5.3.28, 5.4.26, 5.5.25, 5.6.24, 5.7.22, 5.8.20, 5.9.21, 6.0.19, 6.1.17, 6.2.16, 6.3.15, 6.4.15, 6.5.15, 6.6.12, 6.7.12, 6.8.13, 6.9.12, 7.0.9, 7.1.5

External References

Related Security Bulletins