CVE-2024-6874
cURL vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related cURL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-9079CRITICAL9.8
  • cURL logocURL
  • s390utils-hmcdrvfs
NoYesJul 03, 2026
CVE-2026-9546HIGH7.5
  • cURL logocURL
  • trustee-guest-components
NoYesJul 03, 2026
CVE-2026-9545HIGH7.5
  • cURL logocURL
  • cpe:2.3:a:haxx:curl
NoYesJul 03, 2026
CVE-2026-9547HIGH7.4
  • cURL logocURL
  • libcurl4
NoYesJul 03, 2026
CVE-2026-9080HIGH7.3
  • cURL logocURL
  • trustee
NoYesJul 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management