Skip to content
Heist/ feed
Back to feed
High

dd-trace-cpp malformed unicode header values may cause crash

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-38525
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:36 UTC · Revision 1

Source evidence

dd-trace-cpp malformed unicode header values may cause crash

core-osv · Original source

Published 28 Jun 2024, 21:10 UTC

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.

osv:CVE-2024-38525
Complete source record
{
  "id": "7e5e6270a26f17ad5027db5ed11238474f12183380d2deb5578eac980f751c16",
  "url": "https://osv.dev/vulnerability/CVE-2024-38525",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "dd-trace-cpp malformed unicode header values may cause crash",
    "summary": "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.",
    "evidence": "osv:CVE-2024-38525",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-38525",
      "aliases": [
        "CVE-2024-38525",
        "GHSA-rf3p-mg22-qv6w"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/datadog/dd-trace-cpp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5c531434587196b9da86b992c39675df42e89b4d"
                },
                {
                  "fixed": "26e666f995d8d214e6d3c3d7a35342f8c544c008"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.1.12"
                      },
                      {
                        "fixed": "0.2.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "26e666f995d8d214e6d3c3d7a35342f8c544c008"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.2.2"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.2.2"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.2.1",
            "v0.2.0",
            "v0.1.12"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38525.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.038825308Z",
      "provider": "osv",
      "references": [
        "https://github.com/DataDog/dd-trace-cpp/releases/tag/v0.2.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38525.json",
        "https://github.com/DataDog/dd-trace-cpp/security/advisories/GHSA-rf3p-mg22-qv6w",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-38525"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20",
          "CWE-248"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38525.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-38525",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517410,
  "published_at": "2024-06-28T21:10:57.138+00:00"
}