# CVE-2024-38525: dd-trace-cpp malformed unicode header values may cause crash

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2024-06-28T21:10:57.138Z
- Modified: 2026-06-17T07:40:28.293Z
- Weaknesses: CWE-20, CWE-248
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- DataDog dd-trace-cpp: >= 0.1.12, < 0.2.2
- datadoghq dd-trace-cpp: before 0.1.13; before 0.2.2

## References

- <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>

## Sources

- CVE List: [CVE-2024-38525](https://www.cve.org/CVERecord?id=CVE-2024-38525), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-38525](https://nvd.nist.gov/vuln/detail/CVE-2024-38525), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-38525 · Whole record: https://cve.day/CVE-2024-38525.json · Rebuilt by cve.day 2026-11-25T22:58:42.328Z
