CURL-CVE-2023-23915

    Dashboard / Vulnerabilities / CURL-CVE-2023-23915

    CURL-CVE-2023-23915

    Published: 15 Feb 2023Last Modified: 27 Oct 2026

    Summary: HSTS amnesia with --parallel

    Details: curl's HSTS cache saving behaves wrongly when multiple URLs are requested in parallel. Using its HSTS support, curl can be instructed to use HTTPS instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. This HSTS mechanism would however surprisingly fail when multiple transfers are done in parallel as the HSTS cache file gets overwritten by the most recently completed transfer. A later HTTP-only transfer to the earlier hostname would then *not* get upgraded properly to HSTS. Reproducible like this: 1. `curl --hsts hsts.txt --parallel https://curl.se https://example.com` 2. `curl --hsts hsts.txt http://curl.se`

    References:

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 7.77.0
    Fixed -7.88.0

    Affected versions

    7.87.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-2023-23915 | CVE-DB