CVE-2016-8622Heap-based Buffer Overflow in Libcurl

Severity
9.8CRITICALNVD
EPSS
1.6%
top 18.05%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJul 31
Latest updateMay 14

Description

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.

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages3 packages

NVDhaxx/libcurl< 7.51.0
Debianhaxx/curl< 7.51.0-1+3
CVEListV5the_curl_project/curl7.51.0

Patches

🔴Vulnerability Details

3
GHSA
GHSA-xfmx-53v5-938g: The URL percent-encoding decode function in libcurl before 72022-05-14
OSV
CVE-2016-8622: The URL percent-encoding decode function in libcurl before 72018-07-31
CVEList
CVE-2016-8622: The URL percent-encoding decode function in libcurl before 72018-07-31

📋Vendor Advisories

4
Apple
CVE-2016-8622: macOS Sierra 10.12.2, Security Update 2016-003 El Capitan, and Security Update 2016-007 Yosemite2016-12-13
Ubuntu
curl vulnerabilities2016-11-03
Red Hat
curl: URL unescape heap overflow via integer truncation2016-11-02
Debian
CVE-2016-8622: curl - The URL percent-encoding decode function in libcurl before 7.51.0 is called `cur...2016

💬Community

4
Bugzilla
CVE-2016-8615 CVE-2016-8616 CVE-2016-8617 CVE-2016-8618 CVE-2016-8619 CVE-2016-8620 CVE-2016-8621 CVE-2016-8622 CVE-2016-8623 CVE-2016-8624 CVE-2016-8625 mingw-curl: various flaws [epel-7]2016-11-02
Bugzilla
CVE-2016-8615 CVE-2016-8616 CVE-2016-8617 CVE-2016-8618 CVE-2016-8619 CVE-2016-8620 CVE-2016-8621 CVE-2016-8622 CVE-2016-8623 CVE-2016-8624 CVE-2016-8625 mingw-curl: various flaws [fedora-all]2016-11-02
Bugzilla
CVE-2016-8615 CVE-2016-8616 CVE-2016-8617 CVE-2016-8618 CVE-2016-8619 CVE-2016-8620 CVE-2016-8621 CVE-2016-8622 CVE-2016-8623 CVE-2016-8624 curl: various flaws [fedora-all]2016-11-02
Bugzilla
CVE-2016-8622 curl: URL unescape heap overflow via integer truncation2016-10-25
CVE-2016-8622 — Heap-based Buffer Overflow in Libcurl | cvebase