
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-6874 affects libcurl's URL API function curl_url_get() in version 8.8.0. The vulnerability involves a punycode conversion buffer overread issue when the library is built using the macidn IDN backend. This vulnerability was discovered on July 16, 2024, and was fixed with the release of curl 8.9.0 on July 24, 2024 (Curl Advisory).
The vulnerability occurs when converting a name that is exactly 256 bytes in length. In such cases, libcurl reads outside of a stack-based buffer when built using the macidn IDN backend. The conversion function fills the provided buffer exactly but fails to null-terminate the string. The issue is classified as CWE-126: Buffer Over-read with a CVSS v3.1 Base Score of 4.3 MEDIUM (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N) (NVD).
When exploited, this vulnerability can lead to stack contents accidentally being returned as part of the converted string, potentially exposing sensitive information. The vulnerability only affects systems where curl is built using the macidn backend, which is the native IDN conversion library bundled with Apple's operating systems including macOS, iOS, and iPadOS (Curl Advisory).
The vulnerability is considered to have Low severity. It only affects curl version 8.8.0 when built with the macidn IDN backend, and does not affect the curl command line tool. The flaw is characterized as a 'C mistake' that likely could have been avoided if the code wasn't written in C (Curl Advisory).
Three mitigation options are recommended, in order of preference: 1) Upgrade curl and libcurl to version 8.9.0, 2) Apply the patch to the existing version and rebuild, or 3) Build libcurl with an unaffected IDN backend. The vulnerability was fixed in commit 686d54baf1df6e0775 (Curl Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."