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. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (25th 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 IDSNYK-UNMANAGED-CURL-8344249
  • published6 Nov 2024
  • disclosed6 Nov 2024
  • creditnewfunction

Introduced: 6 Nov 2024

CVE-2024-9681  (opens in a new tab)
CWE-1025  (opens in a new tab)

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