CURL-CVE-2016-9952

    Dashboard / Vulnerabilities / CURL-CVE-2016-9952

    CURL-CVE-2016-9952

    Published: 21 Dec 2016Last Modified: 27 May 2026
    Aliases:

    Summary: Win CE Schannel cert wildcard matches too much

    Details: curl's TLS server certificate checks are flawed on Windows CE. This vulnerability occurs in the verify certificate function when comparing a wildcard certificate name (as returned by the Windows API function `CertGetNameString)` to the hostname used to make the connection to the server. The vulnerability can be triggered with an overly permissive wildcard SAN in the server certificate such as a DNS name of `*.com`. When the function compares the cert name to the connection hostname, the wildcard character is removed from the cert name and the connection hostname is checked to see if it ends with the modified cert name. This means a hostname of example.com would match a DNS SAN of `*.com`, among other variations. This approach violates recommendations in RFC 6125 and could lead to MITM attacks.

    References:

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 7.27.0
    Fixed -7.52.0

    Affected versions

    7.51.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-2016-9952 | CVE-DB