Description
WordPress before 2.0.6, when mbstring is enabled for PHP, decodes alternate character sets after escaping the SQL query, which allows remote attackers to bypass SQL injection protection schemes and execute arbitrary SQL commands via multibyte charsets, as demonstrated using UTF-7.
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.0.6-1 | — |
| Debian 13 | wordpress | 2.0.6-1 | — |
| Debian 12 | wordpress | 2.0.6-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.0.5 - Trackback UTF-7 SQL Injection EDB-3095 · webapps · Jan 7, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- wordpress-mbstring-security-bypass(31297) vdb-entry
- 21907 vdb-entry
- 23741 third-party-advisory
- OpenPKG-SA-2007.005 vendor-advisory
- GLSA-200701-10 vendor-advisory
- 31579 vdb-entry
- http://wordpress.org/development/2007/01/wordpress-206/
- 23595 third-party-advisory
- 20070105 Advisory 02/2007: WordPress Trackback Charset Decoding SQL Injection Vulnerability mailing-list
- ADV-2007-0061 vdb-entry
- http://www.hardened-php.net/advisory_022007.141.html
- 2112 third-party-advisory