Vulnerability · Published Jul 24, 2024 · Assigned by curl
CVE-2024-6874macidn punycode buffer overread
Low 3.1
In plain English
A low-severity security flaw in curl from curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 8.9.0-r0 | ALPINE-CVE-2024-6874 |
| Alpine:v3.21 | curl | 8.9.0-r0 | ALPINE-CVE-2024-6874 |
| Alpine:v3.22 | curl | 8.9.0-r0 | ALPINE-CVE-2024-6874 |
| Alpine:v3.23 | curl | 8.9.0-r0 | ALPINE-CVE-2024-6874 |
| Alpine:v3.24 | curl | 8.9.0-r0 | ALPINE-CVE-2024-6874 |
| Debian:13 | curl | 8.9.0-1 | DEBIAN-CVE-2024-6874 |
| Debian:14 | curl | 8.9.0-1 | DEBIAN-CVE-2024-6874 |