CVE-2024-6874
Last modified
CVE-2024-6874 is a medium-severity vulnerability rated 4.3/10 on the CVSS scale. 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. EPSS estimates a 0.79% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Haxx | Libcurl | 8.8.0 |
References
- http://www.openwall.com/lists/oss-security/2024/07/24/2Mailing List, Third Party Advisory
- https://curl.se/docs/CVE-2024-6874.htmlVendor Advisory
- https://curl.se/docs/CVE-2024-6874.jsonVendor Advisory
- https://hackerone.com/reports/2604391Exploit, Issue Tracking, Technical Description
- http://www.openwall.com/lists/oss-security/2024/07/24/2Mailing List, Third Party Advisory
- https://curl.se/docs/CVE-2024-6874.htmlVendor Advisory
- https://curl.se/docs/CVE-2024-6874.jsonVendor Advisory
- https://hackerone.com/reports/2604391Exploit, Issue Tracking, Technical Description
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-6874?
How severe is CVE-2024-6874?
How do I fix CVE-2024-6874?
Are you affected by CVE-2024-6874?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
