# CVE-2024-6874: curl: libcurl's URL API function [curl_url_get()](https://curl.se/libcurl/c/curl_url_get.html) offers punycode conversions,...

CVE-2024-6874 is fixed in curl on 1 platform, first by DEBIAN-CVE-2024-6874, released July 24, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-6874
- Priority: Routine
- CVSS: 4.3 (medium)
- EPSS: 0.0079
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 24, 2024

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | curl Debian 13.5 (trixie) | 8.9.0-1 | [DEBIAN-CVE-2024-6874](https://patchblox.com/security/data/fix/linux/debian-cve-2024-6874.md) | Jul 24, 2024 |
| Linux | curl Debian 14 | 8.9.0-1 | [DEBIAN-CVE-2024-6874](https://patchblox.com/security/data/fix/linux/debian-cve-2024-6874.md) | Jul 24, 2024 |
| Linux | curl opensuse-leap 15.6 | 8.14.1-150600.4.28.1 | [SUSE-SU-2025:03198-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03198-1.md) | Sep 12, 2025 |
| Linux | curl sles 15.6 | 8.14.1-150600.4.28.1 | [SUSE-SU-2025:03198-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03198-1.md) | Sep 12, 2025 |
| Linux | curl sles 15.7 | 8.14.1-150600.4.28.1 | [SUSE-SU-2025:03198-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03198-1.md) | Sep 12, 2025 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
