Description
Drupal 4.6.x before 4.6.7 and 4.7.0, when running on Apache with mod_mime, does not properly handle files with multiple extensions, which allows remote attackers to upload, modify, or execute arbitrary files in the files directory.
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 3.1 | drupal | 4.5.3-6.1sarge1 | DSA-1125 |
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
- Drupal 4.7 - 'Attachment mod_mime' Remote Command Execution EDB-1821 · webapps · May 24, 2006 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-1125 drupal - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://drupal.org/node/65409
- 20060602 [DRUPAL-SA-2006-006] Drupal 4.6.7 / 4.7.1 fixes arbitrary file execution issue mailing-list
- 20140 third-party-advisory
- 18245 vdb-entry
- ADV-2006-1975 vdb-entry
- DSA-1125 vendor-advisory
- 1821 exploit
- 21244 third-party-advisory
- drupal-files-script-execution(26655) vdb-entry