CURL-CVE-2018-16842

    Dashboard / Vulnerabilities / CURL-CVE-2018-16842

    CURL-CVE-2018-16842

    Published: 31 Oct 2018Last Modified: 25 Oct 2026

    Summary: warning message out-of-buffer read

    Details: curl contains a heap out of buffer read vulnerability. The command line tool has a generic function for displaying warning and informational messages to stderr for various situations. For example if an unknown command line argument is used, or passed to it in a "config" file. This display function formats the output to wrap at 80 columns. The wrap logic is however flawed, so if a single word in the message is itself longer than 80 bytes the buffer arithmetic calculates the remainder wrong and ends up reading behind the end of the buffer. This could lead to information disclosure or crash. This vulnerability could lead to a security issue if used in this or similar situations: 1. a server somewhere uses the curl command line to run something 2. if it fails, it shows stderr to the user 3. the server takes user input for parts of its command line input 4. user provides something overly long that triggers this crash 5. the stderr output may now contain user memory contents that was not meant to be available

    References:

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 7.14.1
    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