CVE-2012-0036
highpriority · track · 36EPSS 0.161 · 97 %ileEUUSEPSS · scored 2026-10-23
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.4–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (27)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- CURL-CVE-2012-0036URL sanitization vulnerability2012-01-24vendor · osvUS
curl is vulnerable to a data injection attack for certain protocols through control characters embedded or percent-encoded in URLs. When parsing URLs, libcurl's parser is liberal and only parses as little as possible and lets as much as possible through as long as it can figure out what to do. In the specific process when libcurl extracts the file path part from a given URL, it did not always verify the data or escape control characters properly before it passed the file path on to the protocol-specific code that then would use it for its protocol business. This passing through of control characters could be exploited by someone who would be able to pass in a handcrafted URL to libcurl. Lots of libcurl using applications let users enter URLs in one form or another and not all of these check the input carefully to prevent malicious ones. A malicious user might pass in %0d%0a to get treated as CR LF by libcurl, and by using this fact a user can trick for example a POP3 client to delete a message instead of getting it or trick an SMTP server to send an unintended message. This vulnerability can be used to fool libcurl with the following protocols: IMAP, POP3 and SMTP. Both curl the command line tool and applications using the libcurl library are vulnerable.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (30)
External citations — patches, advisories, analysis.
- http://curl.haxx.se/curl-url-sanitize.patchenisa_euvd
- http://curl.haxx.se/docs/adv_20120124.htmlenisa_euvd
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041enisa_euvd
- http://lists.apple.com/archives/security-announce/2012/May/msg00001.htmlenisa_euvd
- http://secunia.com/advisories/48256enisa_euvd
- http://security.gentoo.org/glsa/glsa-201203-02.xmlenisa_euvd
- http://support.apple.com/kb/HT5281enisa_euvd
- http://www.debian.org/security/2012/dsa-2398enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan