{"schema_version":"1.9.0","id":"CVE-2024-6874","published":"2024-07-24T07:36:26.887Z","modified":"2026-08-12T03:51:17.531743904Z","aliases":["CURL-CVE-2024-6874"],"related":["SUSE-SU-2025:03198-1","openSUSE-SU-2024:14225-1"],"summary":"macidn punycode buffer overread","details":"libcurl's URL API function\n[curl_url_get()](https://curl.se/libcurl/c/curl_url_get.html) offers punycode\nconversions, to and from IDN. Asking to convert a name that is exactly 256\nbytes, libcurl ends up reading outside of a stack based buffer when built to\nuse the *macidn* IDN backend. The conversion function then fills up the\nprovided buffer exactly - but does not null terminate the string.\n\nThis flaw can lead to stack contents accidently getting returned as part of\nthe converted string.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/curl/curl","events":[{"introduced":"fd567d4f06857f4fc8e2f64ea727b1318f76ad33"},{"last_affected":"fd567d4f06857f4fc8e2f64ea727b1318f76ad33"}],"database_specific":{"cpe":"cpe:2.3:a:haxx:libcurl:8.8.0:*:*:*:*:*:*:*","extracted_events":[{"introduced":"8.8.0"},{"last_affected":"8.8.0"}],"source":"CPE_STRING"}}],"versions":["8.8.0","curl-8_8_0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6874.json"}}],"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/24/2"},{"type":"WEB","url":"https://curl.se/docs/CVE-2024-6874.html"},{"type":"WEB","url":"https://curl.se/docs/CVE-2024-6874.json"},{"type":"WEB","url":"https://hackerone.com/reports/2604391"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6874.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6874"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240822-0004/"}],"database_specific":{"cna_assigner":"curl","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6874.json","unresolved_ranges":[{"extracted_events":[{"introduced":"8.8.0"},{"last_affected":"8.8.0"}],"source":"AFFECTED_FIELD"}]},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}