Comparison Using Wrong Factors Affecting curl package, versions [7.74.0, 8.11.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-UNMANAGED-CURL-8344249
  • published 6 Nov 2024
  • disclosed 6 Nov 2024
  • credit newfunction

How to fix?

Upgrade curl to version 8.11.0 or higher.

Overview

curl is a command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. libcurl offers a myriad of powerful features.

Affected versions of this package are vulnerable to Comparison Using Wrong Factors when using applications that enable HSTS and use URLs with the insecure http:// scheme and perform transfers with hosts like x.example.com and example.com in succession. An attacker can manipulate the HSTS cache expiry times by sending crafted Strict-Transport-Security headers from a subdomain, causing the parent domain's security settings to be incorrectly overridden.

This can lead to delayed enforcement of HTTPS, exposing sensitive data that was sent over HTTP, relying on HSTS. It can also allow premature enforcement of HTTPS, thus denying requests sent using HTTP.

This is only exploitable if the HSTS cache either has been populated manually or there have been previous HTTPS accesses cached.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
6.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    None
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None