Name | CVE-2024-6874 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1076996 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
curl (PTS) | jessie, jessie (lts) | 7.38.0-4+deb8u28 | fixed |
| stretch (security) | 7.52.1-5+deb9u16 | fixed |
| stretch (lts), stretch | 7.52.1-5+deb9u22 | fixed |
| buster, buster (lts) | 7.64.0-4+deb10u10 | fixed |
| buster (security) | 7.64.0-4+deb10u9 | fixed |
| bullseye | 7.74.0-1.3+deb11u13 | fixed |
| bullseye (security) | 7.74.0-1.3+deb11u11 | fixed |
| bookworm | 7.88.1-10+deb12u7 | fixed |
| bookworm (security) | 7.88.1-10+deb12u5 | fixed |
| trixie, sid | 8.9.1-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
curl | source | jessie | (not affected) | | | |
curl | source | stretch | (not affected) | | | |
curl | source | buster | (not affected) | | | |
curl | source | bullseye | (not affected) | | | |
curl | source | bookworm | (not affected) | | | |
curl | source | (unstable) | 8.9.0-1 | | | 1076996 |
Notes
[bookworm] - curl <not-affected> (Vulnerable code introduced later)
[bullseye] - curl <not-affected> (Vulnerable code introduced later)
https://curl.se/docs/CVE-2024-6874.html
Introduced in: https://github.com/curl/curl/commit/add22feeef07858307be5722e1869e082554290e (curl-8_8_0)
Fixed by: https://github.com/curl/curl/commit/686d54baf1df6e0775898f484d1670742898b3b2 (curl-8_9_0)
[buster] - curl <not-affected> (Vulnerable code introduced later)
[stretch] - curl <not-affected> (Vulnerable code introduced later)
[jessie] - curl <not-affected> (Vulnerable code introduced later)