{"id":"CVE-2024-6874","state":"PUBLISHED","title":"macidn punycode buffer overread","description":"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.","publishedAt":"2024-07-24T07:36:26.887Z","updatedAt":"2025-02-13T17:58:00.151Z","severity":{"score":3.1,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"CISA-ADP"},"assigner":"curl","products":["curl curl"],"affected":[{"vendor":"curl","product":"curl","defaultStatus":"unaffected","versions":[{"version":"8.8.0","status":"affected","lessThanOrEqual":"8.8.0","versionType":"semver"}]}],"references":["https://curl.se/docs/CVE-2024-6874.json","https://curl.se/docs/CVE-2024-6874.html","https://hackerone.com/reports/2604391","http://www.openwall.com/lists/oss-security/2024/07/24/2","https://security.netapp.com/advisory/ntap-20240822-0004/"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/6xxx/CVE-2024-6874.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-6874","state":"PUBLISHED","datePublished":"2024-07-24T07:36:26.887Z","dateUpdated":"2025-02-13T17:58:00.151Z","assignerShortName":"curl","assignerOrgId":"2499f714-1537-4658-8207-48ae4bb9eae9","dateReserved":"2024-07-18T03:37:32.294Z"},"containers":{"cna":{"title":"macidn punycode buffer overread","descriptions":[{"lang":"en","value":"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":[{"vendor":"curl","product":"curl","defaultStatus":"unaffected","versions":[{"version":"8.8.0","status":"affected","lessThanOrEqual":"8.8.0","versionType":"semver"}]}],"references":[{"url":"https://curl.se/docs/CVE-2024-6874.json","name":"json"},{"url":"https://curl.se/docs/CVE-2024-6874.html","name":"www"},{"url":"https://hackerone.com/reports/2604391","name":"issue"},{"url":"http://www.openwall.com/lists/oss-security/2024/07/24/2"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-126 Buffer Over-read"}]}],"providerMetadata":{"shortName":"curl","orgId":"2499f714-1537-4658-8207-48ae4bb9eae9","dateUpdated":"2024-07-24T07:40:07.072Z"},"credits":[{"lang":"en","value":"z2_","type":"finder"},{"lang":"en","value":"z2_","type":"remediation developer"}]},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"curl","product":"libcurl","defaultStatus":"unknown","versions":[{"version":"8.8.0","status":"affected"}],"cpes":["cpe:2.3:a:curl:libcurl:8.8.0:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":3.1,"attackVector":"NETWORK","baseSeverity":"LOW","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"HIGH","availabilityImpact":"NONE","privilegesRequired":"LOW","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-07-24T16:13:40.560966Z","id":"CVE-2024-6874","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-24T16:25:51.575Z"}},{"title":"CVE Program Container","references":[{"url":"https://curl.se/docs/CVE-2024-6874.json","name":"json","tags":["x_transferred"]},{"url":"https://curl.se/docs/CVE-2024-6874.html","name":"www","tags":["x_transferred"]},{"url":"https://hackerone.com/reports/2604391","name":"issue","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/24/2","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20240822-0004/"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-22T18:03:17.766Z"}}]}}}