Comparison Using Wrong Factors Affecting curl package, versions [7.74.0, 8.11.0)
Threat Intelligence
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
Introduced: 6 Nov 2024
New CVE-2024-9681 Open this link in a new tabHow 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.