Free of Memory not on the Heap Affecting curl package, versions [8.6.0,8.9.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-7554684
- published 24 Jul 2024
- disclosed 24 Jul 2024
- credit z2_
Introduced: 24 Jul 2024
CVE-2024-6197 Open this link in a new tabHow to fix?
Upgrade curl
to version 8.9.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 Free of Memory not on the Heap in the ASN1 parser, through the utf8asn1str
function, upon detecting an invalid ASN.1 UTF-8 string, erroneously invokes free()
on a 4-byte local stack buffer. This can lead to the overwriting of nearby stack memory, potentially causing a crash or, in special circumstances, more severe outcomes.
Exploiting this vulnerability is possible on a system that uses a malloc implementation that does not immediately abort upon error.