Description
lwp-download in libwww-perl before 5.835 does not reject downloads to filenames that begin with a . (dot) character, which allows remote servers to create or overwrite files via (1) a 3xx redirect to a URL with a crafted filename or (2) a Content-Disposition header that suggests a crafted filename, and possibly execute arbitrary code as a consequence of writing to a dotfile in a home 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 14 | libwww-perl | 5.835-1 | — |
| Debian 13 | libwww-perl | 5.835-1 | — |
| Debian 12 | libwww-perl | 5.835-1 | — |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=602800
- [oss-security] 20100517 [oCERT-2010-001] multiple http client unexpected download filename vulnerability mailing-list
- http://cpansearch.perl.org/src/GAAS/libwww-perl-5.836/Changes
- [oss-security] 20100609 Re: [oCERT-2010-001] multiple http client unexpected download filename vulnerability mailing-list
- FEDORA-2010-15532 vendor-advisory
- http://www.ocert.org/advisories/ocert-2010-001.html
- FEDORA-2010-15405 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=591580
- USN-981-1 vendor-advisory
- ADV-2010-2872 vdb-entry