Description
SQL injection vulnerability in wp-includes/class-wp-query.php in WP_Query in WordPress before 4.7.2 allows remote attackers to execute arbitrary SQL commands by leveraging the presence of an affected plugin or theme that mishandles a crafted post type name.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | wordpress | 4.7.2+dfsg-1 | — |
| Debian 13 | wordpress | 4.7.2+dfsg-1 | — |
| Debian 12 | wordpress | 4.7.2+dfsg-1 | — |
| Debian 8 | wordpress | 4.1+dfsg-1+deb8u12 | DSA-3779-1 |
| Debian 7 | wordpress | 3.6.1+dfsg-1~deb7u13 | DLA-813-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | wordpress | No fix yet | — |
Advisories 2
- DLA-813-1 wordpress - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3779-1 wordpress - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- 95816 vdb-entry
- DSA-3779 vendor-advisory
- [oss-security] 20170128 Re: CVE Request: Wordpress: 4.7.2 security release: unauthorized bypass, SQL injection, cross-site scripting issues mailing-list
- 1037731 vdb-entry
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://codex.wordpress.org/Version_4.7.2
- https://wordpress.org/news/2017/01/wordpress-4-7-2-security-release/
- https://github.com/WordPress/WordPress/commit/85384297a60900004e27e417eac56d24267054cb
- https://wpvulndb.com/vulnerabilities/8730