libcurl's URL API function
curl_url_get() 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.
{
"sources": [
{
"database_specific": {
"status": "Modified"
},
"id": "CVE-2024-6874",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-6874",
"modified": "2026-06-17T08:18:53.063Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2024-6874",
"published": "2024-07-24T08:15:03.413Z",
"imported": "2026-07-17T21:01:35.339Z"
}
],
"license": "CC-BY-4.0"
}