Description
Unrestricted file upload vulnerability in the wp_check_filetype function in wp-includes/functions.php in WordPress before 2.8.6, when a certain configuration of the mod_mime module in the Apache HTTP Server is enabled, allows remote authenticated users to execute arbitrary code by posting an attachment with a multiple-extension filename, and then accessing this attachment via a direct request to a wp-content/uploads/ pathname, as demonstrated by a .php.jpg filename.
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.8.6-1 | — |
| Debian 13 | wordpress | 2.8.6-1 | — |
| Debian 12 | wordpress | 2.8.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.8.5 - Unrestricted Arbitrary File Upload / Arbitrary PHP Code Execution EDB-10089 · webapps · Nov 11, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 37332 third-party-advisory
- [oss-security] 20091116 Re: CVE request: Wordpress 2.8.6 mailing-list
- 20091111 WordPress <= 2.8.5 Unrestricted File Upload Arbitrary PHP Code Execution mailing-list
- http://wordpress.org/development/2009/11/wordpress-2-8-6-security-release/
- 20091112 Re: WordPress <= 2.8.5 Unrestricted File Upload Arbitrary PHP Code Execution mailing-list
- [oss-security] 20091115 Re: CVE request: Wordpress 2.8.6 mailing-list
- http://core.trac.wordpress.org/ticket/11122
- 59958 vdb-entry
- 20091112 Re: WordPress <= 2.8.5 Unrestricted File Upload Arbitrary PHP Code Execution mailing-list
- [oss-security] 20091115 CVE request: Wordpress 2.8.6 mailing-list