Skip to content

CVE-2024-6874 macidn punycode buffer overread

MediumCVSS 4.3 EPSS 0.79%
Published
Updated
Exploit status
No public exploit known
Technology
Debian

Description

libcurl's URL API function
curl_url_get() 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

ProductAffected versionsFixed in
debian/curl(Debian:13) < 8.9.0-1 8.9.0-1
debian/curl(Debian:14) < 8.9.0-1 8.9.0-1
curl >= 8.8.0, <= 8.8.0 No fix listed
curl libcurl = 8.8.0 No fix listed
alpine/curl(Alpine:v3.17) < 8.9.0-r0 8.9.0-r0
alpine/curl(Alpine:v3.18) < 8.9.0-r0 8.9.0-r0
alpine/curl(Alpine:v3.19) < 8.9.0-r0 8.9.0-r0
alpine/curl(Alpine:v3.20) < 8.9.0-r0 8.9.0-r0
alpine/curl(Alpine:v3.21) < 8.9.0-r0 8.9.0-r0
alpine/curl(Alpine:v3.22) < 8.9.0-r0 8.9.0-r0
alpine/curl(Alpine:v3.23) < 8.9.0-r0 8.9.0-r0
alpine/curl(Alpine:v3.24) < 8.9.0-r0 8.9.0-r0
haxx libcurl = 8.8.0 No fix listed

References