CVE-2024-6197
freeing stack buffer in utf8asn1str
At a glance
- Source
- NVD
- EPSS
- EPSS 4.30 % · percentile 91 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- curl
- NVD status
- Modified
Description
libcurl's ASN1 parser has this utf8asn1str() function used for parsing an ASN.1 UTF-8 string. Itcan detect an invalid field and return error. Unfortunately, when doing so it also invokes `free()` on a 4 byte localstack buffer. Most modern malloc implementations detect this error and immediately abort. Some however accept the input pointer and add that memory to its list of available chunks. This leads to the overwriting of nearby stack memory. The content of the overwrite is decided by the `free()` implementation; likely to be memory pointers and a set of flags. The most likely outcome of exploting this flaw is a crash, although it cannot be ruled out that more serious results can be had in special circumstances.
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) |
European references
- ENISA EUVD · EUVD-2024-47336
- GCVE · GCVE-0-2024-6197
CERT-FR advisories
- CERTFR-2026-AVI-0101 — Multiples vulnérabilités dans les produits Siemens · cert.ssi.gouv.fr
- CERTFR-2025-AVI-1057 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0328 — Multiples vulnérabilités dans Tenable Security Center · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0857 — Multiples vulnérabilités dans les produits Microsoft · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0854 — Multiples vulnérabilités dans Microsoft Windows · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0807 — Multiples vulnérabilités dans Nessus Network Monitor · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0780 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0676 — Multiples vulnérabilités dans Tenable Security Center · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:*≥ 8.6.0 < 8.9.0
Affected products
| Product | Versions |
|---|---|
| curl · curl | affected 8.8.0 ≤ 8.8.0 ; affected 8.7.1 ≤ 8.7.1 ; affected 8.7.0 ≤ 8.7.0 ; affected 8.6.0 ≤ 8.6.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |