{"id":"CVE-2026-54788","aliases":["CVE-2026-54788","GHSA-gpwf-4h98-v82q"],"related":[],"kind":"vulnerability","state":"published","title":"dd-trace-rs: Unbounded W3C tracestate parsing may lead to DoS","summary":"dd-trace-rs provides Datadog application performance monitoring for Rust. From 0.1.0 until 0.3.3, datadog-opentelemetry/src/propagation/tracecontext.rs parses the W3C tracestate header and collects every semicolon-separated key and value pair in the Datadog dd=... vendor entry into a HashMap without enforcing a pair count or entry size limit. Because tracecontext extraction is enabled by default, a remote unauthenticated attacker can send an arbitrarily large dd=... entry and force excessive CPU and memory consumption for each request, causing denial of service in an instrumented network service. This vulnerability is fixed in 0.3.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"dd-trace-rs provides Datadog application performance monitoring for Rust. From 0.1.0 until 0.3.3, datadog-opentelemetry/src/propagation/tracecontext.rs parses the W3C tracestate header and collects every semicolon-separated key and value pair in the Datadog dd=... vendor entry into a HashMap without enforcing a pair count or entry size limit. Because tracecontext extraction is enabled by default, a remote unauthenticated attacker can send an arbitrarily large dd=... entry and force excessive CPU and memory consumption for each request, causing denial of service in an instrumented network service. This vulnerability is fixed in 0.3.3.","source":"cvelist"},{"lang":"en","text":"### Impact\nDatadog tracing libraries that implement W3C Trace Context (`tracecontext`) propagation parse the incoming `tracestate` header without enforcing a size cap on the Datadog vendor entry (`dd=...`). The `dd=` value contains semicolon-separated `key:value` pairs, and the parser allocates a hash-map entry for each pair. A remote, unauthenticated attacker can send a `tracestate` header whose `dd=` member is arbitrarily large (or contains an arbitrarily large number of pairs), forcing unbounded CPU and memory consumption per request and enabling a remote Denial of Service. `tracecontext` extraction is enabled by default in affected tracers, so any internet-facing service instrumented with an affected version is exposed unless `tracecontext` has been explicitly removed from the propagation style configuration.\n\n### Patches\nThis is resolved in version 0.3.3 and later of the `dd-trace-rs` library.\n\n### Workarounds\nIf you cannot upgrade immediately:\n1. Disable `tracecontext` extraction by setting `DD_TRACE_PROPAGATION_STYLE_EXTRACT` to a value that does not include `tracecontext` (for example, `datadog`).\n2. Cap the maximum HTTP request header size at an upstream proxy or web server.","format":"markdown","source":"ghsa"}],"published":"2026-08-28T16:33:49.032Z","modified":"2026-09-09T21:09:13.080Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":">= 0.1.0, < 0.3.3","status":"affected"}],"vendor":"DataDog","product":"dd-trace-rs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.3.3"}],"ecosystem":"crates.io","package":"datadog-opentelemetry","purl":"pkg:cargo/datadog-opentelemetry","source":"ghsa"}],"references":[{"url":"https://github.com/DataDog/dd-trace-rs/security/advisories/GHSA-gpwf-4h98-v82q","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DataDog/dd-trace-rs/pull/218","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DataDog/dd-trace-rs/commit/77c5d185c71d0ea8103da0e6cf4cd50677ffacd2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DataDog/dd-trace-rs/releases/tag/datadog-opentelemetry-v0.3.3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DataDog/dd-trace-rs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-31T18:57:04.416Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54788","url":"https://www.cve.org/CVERecord?id=CVE-2026-54788","licence":"CVE Terms of Use","modified":"2026-08-31T18:57:14.867Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gpwf-4h98-v82q","url":"https://github.com/advisories/GHSA-gpwf-4h98-v82q","licence":"CC-BY-4.0","modified":"2026-08-28T16:55:35.433Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54788","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54788","licence":"Public domain","modified":"2026-09-09T21:09:13.080Z"}],"updatedAt":"2026-11-25T22:59:35.677Z","epss":{"score":0.00562,"percentile":0.4809,"date":"2026-12-01T12:00:22.000Z"}}