Out-of-bounds Read Affecting curl package, versions [7.32.0,8.9.1)
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-7574714
- published 31 Jul 2024
- disclosed 31 Jul 2024
- credit Dov Murik
Introduced: 31 Jul 2024
CVE-2024-7264 Open this link in a new tabHow to fix?
Upgrade curl
to version 8.9.1 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 Out-of-bounds Read via the GTime2str
function. An attacker can exploit this vulnerability by supplying a syntactically incorrect ASN.1 Generalized Time field.
This flaw most likely leads to a crash but can also lead to heap contents getting returned to the application when CURLINFO_CERTINFO
is used.
Note
The vulnerable code can only be reached when curl is built to use GnuTLS, Schannel, Secure Transport, or mbedTLS. Builds using other TLS backends are not vulnerable.
This vulnerability affects curl built with different backends starting in different versions:
GnuTLS since 7.42.0
Schannel since 7.50.0
Secure Transport since 7.79.0
mbedTLS since 8.9.0