CVE-2024-6197 in Curl and 13 more products
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.
Affects 14 products from 3 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Curl | Curl | ≥ 8.6.0, ≤ 8.8.0 |
| Haxx | Libcurl | ≥ 8.6.0, < 8.9.0 |
| Siemens | SCALANCE XR-500 (device and firmware) | < 3.3 |
| Siemens | RUGGEDCOM RST2428P (device and firmware) | < 3.3 |
| Siemens | SCALANCE XCH328 | < 3.3 |
| Siemens | SCALANCE XCM324 | < 3.3 |
| Siemens | SCALANCE XCM332 | < 3.3 |
| Siemens | SCALANCE XRH334 | < 3.3 |
| Siemens | SCALANCE XRM334 | < 3.3 |
| Siemens | SCALANCE XCM328 | < 3.3 |
| Siemens | SCALANCE XR-300 (device and firmware) | < 3.3 |
Fix and vendor advisory
- RUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XCM-/XRM-/XCH-/XRH-300 family: Update to V3.2 or later version
Source: ICSA-25-226-07
- RUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2) and 11 more: Update to V3.3 or later version
- SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family: See Section Additional Information.
Source: ICSA-26-043-06
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2024-6197 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-224511-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2024-07-24 |
| Last modified | 2026-06-17 |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement network segmentation and access controls to limit exposure to untrusted sources. Regularly monitor and log network traffic for suspicious activity.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.