CURL-CVE-2014-3613

    Dashboard / Vulnerabilities / CURL-CVE-2014-3613

    CURL-CVE-2014-3613

    Published: 10 Sept 2014Last Modified: 27 May 2026
    Aliases:

    Summary: cookie leak with IP address as domain

    Details: By not detecting and rejecting domain names for partial literal IP addresses properly when parsing received HTTP cookies, libcurl can be fooled to both sending cookies to wrong sites and into allowing arbitrary sites to set cookies for others. For this problem to trigger, the client application must use the numerical IP address in the URL to access the site and the site must send back cookies to the site using domain= and a partial IP address. Since libcurl wrongly approaches the IP address like it was a normal domain name, a site at IP address `192.168.0.1` can set cookies for anything ending with `.168.0.1` thus fooling libcurl to send them also to for example `129.168.0.1`. The flaw requires dots to be present in the IP address, which restricts the flaw to IPv4 literal addresses or IPv6 addresses using the somewhat unusual "dotted-quad" style: `::ffff:192.0.2.128`. This is not believed to be done by typical sites as this is not supported by clients that adhere to the rules of the RFC 6265, and many sites are written to explicitly use their own specific named domain when sending cookies.

    References:

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 4.0
    Fixed -7.38.0

    Affected versions

    7.37.1
    7.37.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-2014-3613 | CVE-DB