CVE-2024-6874
MEDIUM 4.3CVSS 3.1libcurl'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.
- Published
- 24 Jul 2024
- Last modified
- 17 Jun 2026
- Assigned by
- 2499f714-1537-4658-8207-48ae4bb9eae9
- NVD status
- Modified
- Weakness
- CWE-125
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | haxx | libcurlcpe:2.3:a:haxx:libcurl:8.8.0:*:*:*:*:*:*:* |
= 8.8.0 |
References
- http://www.openwall.com/lists/oss-security/2024/07/24/2 · Mailing List, Third Party Advisory
- https://curl.se/docs/CVE-2024-6874.html · Vendor Advisory
- https://curl.se/docs/CVE-2024-6874.json · Vendor Advisory
- https://hackerone.com/reports/2604391 · Exploit, Issue Tracking, Technical Description
- https://security.netapp.com/advisory/ntap-20240822-0004/
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 24 Jul 2024)