Description
curl and libcurl 7.2x before 7.24.0 do not properly consider special characters during extraction of a pathname from a URL, which allows remote attackers to conduct data-injection attacks via a crafted URL, as demonstrated by a CRLF injection attack on the (1) IMAP, (2) POP3, or (3) SMTP protocol.
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 | curl | 7.24.0-1 | — |
| Debian 13 | curl | 7.24.0-1 | — |
| Debian 12 | curl | 7.24.0-1 | — |
| Debian 6.0 | curl | 7.21.0-2.1+squeeze1 | DSA-2398-1 |
| Debian 5.0 | curl | 7.18.2-8lenny6 | DSA-2398-1 |
Advisories 1
- DSA-2398-1 curl - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html
- HPSBMU02786 vendor-advisory
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03760en_us
- 1032924 vdb-entry
- DSA-2398 vendor-advisory
- GLSA-201203-02 vendor-advisory
- 51665 vdb-entry
- 48256 third-party-advisory
- http://curl.haxx.se/docs/adv_20120124.html
- http://curl.haxx.se/curl-url-sanitize.patch
- MDVSA-2012:058 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=773457
- http://support.apple.com/kb/HT5281
- https://github.com/bagder/curl/commit/75ca568fa1c19de4c5358fed246686de8467c238
- APPLE-SA-2012-05-09-1 vendor-advisory