Lucene search

K
cvelistCurlCVELIST:CVE-2024-6874
HistoryJul 24, 2024 - 7:36 a.m.

CVE-2024-6874 macidn punycode buffer overread

2024-07-2407:36:26
curl
www.cve.org
13
cve-2024-6874
macidn
punycode
buffer overread
libcurl
url api
idn
stack buffer
conversion
flaw

EPSS

0.001

Percentile

35.1%

libcurl’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.

CNA Affected

[
  {
    "vendor": "curl",
    "product": "curl",
    "versions": [
      {
        "version": "8.8.0",
        "status": "affected",
        "lessThanOrEqual": "8.8.0",
        "versionType": "semver"
      }
    ],
    "defaultStatus": "unaffected"
  }
]