CVE-2015-3145
highpriority · track · 41EPSS 0.305 · 98 %ileEUUSEPSS · scored 2026-10-27
The sanitize_cookie_path function in cURL and libcurl 7.31.0 through 7.41.0 does not properly calculate an index, which allows remote attackers to cause a denial of service (out-of-bounds write and crash) or possibly have other unspecified impact via a cookie path containing only a double-quote character.
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 (42)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- CURL-CVE-2015-3145cookie parser out of boundary memory access2015-04-22vendor · osvUS
libcurl supports HTTP "cookies" as documented in RFC 6265. Together with each individual cookie there are several different properties, but for this vulnerability we focus on the associated "path" element. It tells information about for which path on a given host the cookie is valid. The internal libcurl function called `sanitize_cookie_path()` that cleans up the path element as given to it from a remote site or when read from a file, did not properly validate the input. If given a path that consisted of a single double-quote, libcurl would index a newly allocated memory area with index -1 and assign a zero to it, thus destroying heap memory it was not supposed to. At best, this gets unnoticed but can also lead to a crash or worse. We have not researched further what kind of malicious actions that potentially this could be used for. Applications have to explicitly enable cookie parsing in libcurl for this problem to trigger, and if not enabled libcurl does not hit this problem.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (45)
External citations — patches, advisories, analysis.
- http://curl.haxx.se/docs/adv_20150422B.htmlPatchcnnvd
- http://curl.haxx.se/docs/adv_20150422C.htmlcnnvd
- http://secunia.com/advisories/64164cnnvd
- http://secunia.com/advisories/64284cnnvd
- http://www.debian.org/security/2015/dsa-3232cnnvd
- http://advisories.mageia.org/MGASA-2015-0179.htmlenisa_euvd
- http://curl.haxx.se/docs/adv_20150422C.htmlenisa_euvd
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10743enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan