CURL-CVE-2018-16839

    Dashboard / Vulnerabilities / CURL-CVE-2018-16839

    CURL-CVE-2018-16839

    Published: 31 Oct 2018Last Modified: 25 Oct 2026

    Summary: SASL password overflow via integer overflow

    Details: libcurl contains a buffer overrun in the SASL authentication code. The internal function `Curl_auth_create_plain_message` fails to correctly verify that the passed in lengths for name and password are not too long, then calculates a buffer size to allocate. On systems with a 32-bit `size_t`, the math to calculate the buffer size triggers an integer overflow when the username length exceeds 1GB and the password name length is close to 2GB in size. This integer overflow usually causes a tiny buffer to actually get allocated instead of the intended huge one, making the use of that buffer end up in a heap buffer overflow. (This bug is similar to [CVE-2018-14618](https://curl.se/docs/CVE-2018-14618.html).)

    References:

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 7.33.0
    Fixed -7.62.0

    Affected versions

    7.61.1
    7.61.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
    CURL-CVE-2018-16839 | CVE-DB