CVE-2024-6197
published high CVSS 3.1 · 7.5freeing stack buffer in utf8asn1str
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| curl | — | curl8.8.0 through 8.8.0 · 8.7.1 through 8.7.1 · 8.7.0 through 8.7.0 · 8.6.0 through 8.6.0 · Other versions: unaffected | Affected | Not stated | curl |
| curl | — | curl8.6.0 through 8.8.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | curl | Fixed | 8.9.0-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP6 | curlaarch64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| Alpine Linux | v3.17 | curl | Fixed | 8.9.0-r0 | Package fix record |
| Alpine Linux | v3.18 | curl | Fixed | 8.9.0-r0 | Package fix record |
Show 64 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.19 | curl | Fixed | 8.9.0-r0 | Package fix record |
| Alpine Linux | v3.20 | curl | Fixed | 8.9.0-r0 | Package fix record |
| Alpine Linux | v3.21 | curl | Fixed | 8.9.0-r0 | Package fix record |
| Alpine Linux | v3.22 | curl | Fixed | 8.9.0-r0 | Package fix record |
| Alpine Linux | v3.23 | curl | Fixed | 8.9.0-r0 | Package fix record |
| Alpine Linux | v3.24 | curl | Fixed | 8.9.0-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP6 | curlppc64le | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | curls390x | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | curlx86_64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | curlaarch64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | curlppc64le | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | curls390x | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | curlx86_64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlaarch64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlppc64le | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curls390x | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlx86_64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | SLE-15-SP6 | libcurl-develaarch64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | libcurl-develppc64le | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | libcurl-devels390x | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | libcurl-develx86_64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | libcurl4aarch64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | libcurl4ppc64le | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | libcurl4s390x | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | libcurl4x86_64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | SLE-15-SP6 | libcurl4-32bitx86_64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl-develaarch64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl-develppc64le | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl-devels390x | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl-develx86_64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl-devel-32bitx86_64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl4aarch64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl4ppc64le | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl4s390x | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl4x86_64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libcurl4-32bitx86_64 | Advisory build | 8.6.0-150600.4.3.1 | SUSE-SU-2024:2784-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curl-fish-completionaarch64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curl-fish-completionppc64le | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curl-fish-completions390x | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curl-fish-completionx86_64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curl-zsh-completionaarch64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curl-zsh-completionppc64le | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curl-zsh-completions390x | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curl-zsh-completionx86_64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-develaarch64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-develppc64le | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devels390x | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-develx86_64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-32bitaarch64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-32bitppc64le | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-32bits390x | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-32bitx86_64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-docaarch64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-docppc64le | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-docs390x | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-docx86_64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4aarch64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4ppc64le | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4s390x | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4x86_64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4-32bitaarch64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4-32bitppc64le | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4-32bits390x | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4-32bitx86_64 | Advisory build | 8.9.0-1.1 | OPENSUSE-SU-2024:14225-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| curl | curl | 8.8.0 through 8.8.0 (affected · semver)8.7.1 through 8.7.1 (affected · semver)8.7.0 through 8.7.0 (affected · semver)8.6.0 through 8.6.0 (affected · semver)Default: unaffected | curl · cna |
| curl | curl | 8.6.0 through 8.8.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-590 CWE-590 Free of Memory not on the Heap
References
6- http://www.openwall.com/lists/oss-security/2024/07/24/1
- http://www.openwall.com/lists/oss-security/2024/07/24/5
- www https://curl.se/docs/CVE-2024-6197.html
- json https://curl.se/docs/CVE-2024-6197.json
- issue https://hackerone.com/reports/2559516
- https://security.netapp.com/advisory/ntap-20241129-0008/
Provider assertions
3curl · cna
freeing stack buffer in utf8asn1str
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4254ef09f86ddad9d09b33710f8354874fcef79bfaf3c5e732de505490c86682
- Ingested
- 23 Sep 2026, 08:33:03 UTC
- Source record
- Official CVE record