Skip to content
OpenAdvisories
Low · 3.1 CVE-2024-6874 EUVD-2024-47867GHSA-chhh-4xrf-42pg

macidn punycode buffer overread

Published Jul 24, 2024 · Updated Feb 13, 2025 · 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.

Affected products

VendorProductAffectedFixed
curl curl 8.8.0 – ≤ 8.8.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 8.9.0-1 —
Debian 13 curl 8.9.0-1 —
ReleasePackageFixed inAdvisory
SLES 15 SP7 curl 8.14.1-150600.4.28.1 SUSE-SU-2025:03198-1
SLES 15 SP6 curl 8.14.1-150600.4.28.1 SUSE-SU-2025:03198-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 8.9.0-1.1 openSUSE-SU-2024:14225-1
openSUSE Leap 15.6 curl 8.14.1-150600.4.28.1 SUSE-SU-2025:03198-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 8.9.0-r0 —
Alpine v3.23 curl 8.9.0-r0 —
Alpine v3.22 curl 8.9.0-r0 —
Alpine v3.21 curl 8.9.0-r0 —
Alpine v3.20 curl 8.9.0-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 8.9.0-r0 —
Alpine v3.18 curl 8.9.0-r0 —
Alpine v3.17 curl 8.9.0-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 cmake 3.30.3-2 —
Azure Linux 3 curl 8.8.0-1 —
Azure Linux 2 (CBL-Mariner) curl 8.8.0-1 —

Advisories 7

References