cbcvebase.
CVE-2024-6874
published 2024-07-24

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…

PriorityP425medium4.3CVSS 3.1
AVNACLPRLUINSUCLINAN
EPSS
0.99%
77.4th percentile
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.

Affected

20 ranges
VendorProductVersion rangeFixed in
curlcurl8.8.0 – 8.8.0
debiancurl< curl 8.9.0-1 (forky)curl 8.9.0-1 (forky)
haxxcurl>= 0 < 8.9.0-r08.9.0-r0
haxxcurl>= 0 < 8.9.0-r08.9.0-r0
haxxcurl>= 0 < 8.9.0-r08.9.0-r0
haxxcurl>= 0 < 8.9.0-r08.9.0-r0
haxxcurl>= 0 < 8.9.0-r08.9.0-r0
haxxcurl>= 0 < 8.9.0-r08.9.0-r0
haxxcurl>= 0 < 8.9.0-r08.9.0-r0
haxxcurl>= 0 < 8.9.0-18.9.0-1
haxxcurl>= 0 < 8.9.0-18.9.0-1
haxxlibcurl
msrcazl3_cmake_3.30.3-2_on_azure_linux_3.0
msrcazl3_cmake_3.30.3-6_on_azure_linux_3.0
msrcazl3_curl_8.8.0-1_on_azure_linux_3.0
msrcazl3_curl_8.8.0-4_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_curl_8.8.0-1_on_cbl_mariner_2.0
msrccbl2_curl_8.8.0-6_on_cbl_mariner_2.0

CVSS provenance

nvdv3.14.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
osv4.3MEDIUM
vendor_debian4.3LOW
vendor_msrc4.3MEDIUM
vendor_redhat4.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.