Description
SQL injection vulnerability in wp-includes/query.php in WordPress 2.3.1 and earlier allows remote attackers to execute arbitrary SQL commands via the s parameter, when DB_CHARSET is set to (1) Big5, (2) GBK, or possibly other character set encodings that support a "\" in a multibyte character.
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 | 2.3.2-1 | — |
| Debian 13 | wordpress | 2.3.2-1 | — |
| Debian 12 | wordpress | 2.3.2-1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- WordPress Core 2.3.1 - Charset SQL Injection EDB-4721 · webapps · Dec 11, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://www.abelcheung.org/advisory/20071210-wordpress-charset.txt
- FEDORA-2008-0126 vendor-advisory
- 1019071 vdb-entry
- 20071210 WordPress Charset SQL injection vulnerability (re-resend) mailing-list
- 28005 third-party-advisory
- 26795 vdb-entry
- 20071210 WordPress Charset SQL injection vulnerability (re-resend) mailing-list
- ADV-2007-4172 vdb-entry
- 28310 third-party-advisory
- FEDORA-2008-0103 vendor-advisory
- 3433 third-party-advisory
- wordpress-gbk-big5-sql-injection(38959) vdb-entry