CURL-CVE-2016-8622

    Dashboard / Vulnerabilities / CURL-CVE-2016-8622

    CURL-CVE-2016-8622

    Published: 2 Nov 2016Last Modified: 25 Oct 2026
    Aliases:

    Summary: URL unescape heap overflow via integer truncation

    Details: The URL percent-encoding decode function in libcurl is called `curl_easy_unescape`. Internally, even if this function would be made to allocate a destination buffer larger than 2GB, it would return that new length in a signed 32-bit integer variable, thus the length would get either truncated only or both truncated and turned negative. That could then lead to libcurl writing outside of its heap based buffer. This can be triggered by a user on a 64-bit system if the user can send in a custom (large) URL to a libcurl using program.

    References:

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 7.24.0
    Fixed -7.51.0

    Affected versions

    7.50.3
    7.50.2
    7.50.1
    7.50.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High