CVE-2024-6874

CVE-2024-6874 is a medium-severity vulnerability in Haxx Libcurl with a CVSS 3.x base score of 4.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-125.

Key facts

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.

Frequently asked questions

What is CVE-2024-6874?
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.
How severe is CVE-2024-6874?
CVE-2024-6874 has a CVSS 3.x base score of 4.3, rated medium severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is low, integrity none, and availability none.
Is CVE-2024-6874 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (52nd percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-6874?
CVE-2024-6874 affects Haxx Libcurl. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-6874?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-6874 have an EU (EUVD) identifier?
Yes. CVE-2024-6874 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-47867.
When was CVE-2024-6874 published?
CVE-2024-6874 was published on 2024-07-24 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Haxx Libcurl

All CVEs affecting Haxx Libcurl →

Other CWE-125 (Out-of-bounds Read) vulnerabilities

Browse all CWE-125 (Out-of-bounds Read) vulnerabilities →