What’s Vulnerable › Vulnerabilities
CVE-2024-38525: dd-trace-cpp malformed unicode header values may cause crash
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-06-28 · updated 2026-06-17
- Weakness: CWE-20
Description
dd-trace-cpp is the Datadog distributed tracing for C++. When the library fails to extract trace context due to malformed unicode, it logs the list of audited headers and their values using the `nlohmann` JSON library. However, due to the way the JSON library is invoked, it throws an uncaught exception, which results in a crash. This vulnerability has been patched in version 0.2.2.
Affected products
- DataDog dd-trace-cpp: before 0.1.13; before 0.2.2 — fixed in 0.1.13, 0.2.2
How to fix
Upgrade to a fixed version: DataDog dd-trace-cpp 0.1.13, 0.2.2. Check the vendor advisory for mitigations.
References
- https://github.com/DataDog/dd-trace-cpp/releases/tag/v0.2.2
- https://github.com/DataDog/dd-trace-cpp/security/advisories/GHSA-rf3p-mg22-qv6w
- https://github.com/DataDog/dd-trace-cpp/releases/tag/v0.2.2
- https://github.com/DataDog/dd-trace-cpp/security/advisories/GHSA-rf3p-mg22-qv6w
Get alerted when CVE-2024-38525 or the next vulnerability affects your stack