Buffer overflow in Haxx Libcurl
CVE-2016-8622
The URL percent-encoding decode function in libcurl before 7.51.0 is called `curl_easy_unescape`. Internally, even if this function would be made to allocate a unscape destination buffer larger than 2GB, it would return that new length in a signed 32 bit integer variable, thus the length would get either just truncated or both truncated and turned negative. That could then lead to libcurl writing outside of its heap based buffer.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.7 (Low). Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS 0.047, 91.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Haxx Libcurl
- The Curl Project — versions 7.51.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cvemon, fokypoky/places-list). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- RHSA-2018:3558 (vendor-advisory)
- curl.haxx.se/docs/adv_20161102H.html (Patch, Vendor Advisory)
- www.tenable.com/security/tns-2016-21 (Third Party Advisory)
- www.securitytracker.com/id/1037192 (Third Party Advisory, VDB Entry, vdb-entry)
- www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
- www.securityfocus.com/bid/94105 (Third Party Advisory, VDB Entry, vdb-entry)
- RHSA-2018:2486 (vendor-advisory, Third Party Advisory)
- GLSA-201701-47 (vendor-advisory, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)