# CVE-2024-6874: macidn punycode buffer overread

- Severity: Low 3.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-24T07:36:26.887Z
- Modified: 2026-10-25T01:05:25.336Z
- Also known as: CURL-CVE-2024-6874
- Weaknesses: CWE-125, CWE-126
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: curl

## 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.

(As written by CVE List.)

## Affected

- curl curl: from 8.8.0 up to 8.8.0
- curl libcurl: 8.8.0
- https://github.com/curl/curl.git: from 8.8.0 before 8.9.0; from add22feeef07858307be5722e1869e082554290e before 686d54baf1df6e0775898f484d1670742898b3b2
- haxx libcurl: 8.8.0

## Every score

- CISA-ADP: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- curl: rating Low
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://hackerone.com/reports/2604391> (exploit, issue-tracking, technical-description)
- <https://curl.se/docs/CVE-2024-6874.json> (vendor-advisory)
- <https://curl.se/docs/CVE-2024-6874.html> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/07/24/2> (mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20240822-0004/>

## Sources

- CVE List: [CVE-2024-6874](https://www.cve.org/CVERecord?id=CVE-2024-6874), CVE Terms of Use, modified 2025-02-13
- curl: [CURL-CVE-2024-6874](https://osv.dev/vulnerability/CURL-CVE-2024-6874), MIT, modified 2026-10-25
- NVD: [CVE-2024-6874](https://nvd.nist.gov/vuln/detail/CVE-2024-6874), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6874 · Whole record: https://cve.day/CVE-2024-6874.json · Rebuilt by cve.day 2026-11-25T22:58:43.180Z
