CVEvulnerability

CVE-2016-8622

9.8 CRITICAL Published 2018-07-31 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2018-07-31
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.0 ([email protected])
3.7 LOW — CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 3.0 ([email protected])
9.8 CRITICAL — CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 ([email protected])
7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
Weaknesses
CWE-122, CWE-190, CWE-787

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.

Affected configurations

• haxx libcurl (< 7.51.0)

Related

Weakness · CWE (3)

  • CWE-122 Heap-based Buffer Overflow weakness
  • CWE-190 Integer Overflow or Wraparound weakness
  • CWE-787 Out-of-bounds Write weakness

References