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.

Severity (CVSS 3.1)3.1Low
Exploit odds (30 days)0.8%top 43.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20curl8.9.0-r0ALPINE-CVE-2024-6874
Alpine:v3.21curl8.9.0-r0ALPINE-CVE-2024-6874
Alpine:v3.22curl8.9.0-r0ALPINE-CVE-2024-6874
Alpine:v3.23curl8.9.0-r0ALPINE-CVE-2024-6874
Alpine:v3.24curl8.9.0-r0ALPINE-CVE-2024-6874
Debian:13curl8.9.0-1DEBIAN-CVE-2024-6874
Debian:14curl8.9.0-1DEBIAN-CVE-2024-6874

Affected products (as reported)

VendorProductVersions
curl curl 8.8.0 – through 8.8.0

References