Vulnerability record · CVE-2024-6874 · published 24 July 2024
CVE-2024-6874: Haxx libcurl out-of-bounds read vulnerability
Haxx · Libcurl
libcurl's URL API function [curl_url_get()](https://curl.se/libcurl/c/curl_url_get.html) offers punycode conversions, to and from IDN. Asking to convert a name that is exactly 256 bytes, libcurl ends up reading outside of a stack based buffer when built to use the *macidn* IDN backend. The conversion function then fills up the provided buffer exactly - but does not null terminate the string. This flaw can lead to stack contents accidently getting returned as part of the converted string.
Description
libcurl's URL API function [curl_url_get()](https://curl.se/libcurl/c/curl_url_get.html) offers punycode conversions, to and from IDN. Asking to convert a name that is exactly 256 bytes, libcurl ends up reading outside of a stack based buffer when built to use the *macidn* IDN backend. The conversion function then fills up the provided buffer exactly - but does not null terminate the string. This flaw can lead to stack contents accidently getting returned as part of the converted string.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://www.openwall.com/lists/oss-security/2024/07/24/2 | Mailing ListThird Party Advisory |
| https://curl.se/docs/CVE-2024-6874.html | Vendor Advisory |
| https://curl.se/docs/CVE-2024-6874.json | Vendor Advisory |
| https://hackerone.com/reports/2604391 | ExploitIssue TrackingTechnical Description |
| http://www.openwall.com/lists/oss-security/2024/07/24/2 | Mailing ListThird Party Advisory |
| https://curl.se/docs/CVE-2024-6874.html | Vendor Advisory |
| https://curl.se/docs/CVE-2024-6874.json | Vendor Advisory |
| https://hackerone.com/reports/2604391 | ExploitIssue TrackingTechnical Description |
| https://security.netapp.com/advisory/ntap-20240822-0004/ |
Track CVE-2024-6874 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2024-6874), CISA KEV, FIRST EPSS (scores of 2026-11-20). This page is refreshed as NVD updates the record.