CVE-2026-54788: dd-trace-rs: Unbounded W3C tracestate parsing may lead to DoS

Published Aug 28, 2026
·
Updated

Impact Datadog 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.

Patches This is resolved in version 0.3.3 and later of the dd-trace-rs library.

Workarounds If you cannot upgrade immediately: 1. Disable tracecontext extraction by setting DDTRACEPROPAGATIONSTYLEEXTRACT to a value that does not include tracecontext (for example, datadog). 2. Cap the maximum HTTP request header size at an upstream proxy or web server.

Other sources

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.

MITRE

Affected Software

1 affected componentFixes available
rust/datadog-opentelemetry>=0.1.0<0.3.3
0.3.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/datadog-opentelemetry to a version that resolves this vulnerability.

    Fixed in 0.3.3
  2. Upgrade

    Upgrade dd-trace-rs to a version that resolves this vulnerability.

    Fixed in 0.3.3
  3. Configuration

    Disable tracecontext extraction by setting DD_TRACE_PROPAGATION_STYLE_EXTRACT to a value that does not include `tracecontext` (e.g., `datadog`), since tracecontext extraction is enabled by default in affected tracers.

    Datadog tracing libraries (W3C Trace Context tracecontext propagation) DD_TRACE_PROPAGATION_STYLE_EXTRACT = a value that does not include tracecontext (for example, datadog)
  4. Compensating control

    Cap the maximum HTTP request header size at an upstream proxy or web server to limit the size of a malicious `tracestate` header (including arbitrarily large `dd=` values).

Event History

Aug 28, 2026
CVE Published
via MITRE·04:33 PM
Data Sourced
via MITRE·04:33 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·04:35 PM
Data Sourced
via GitHub·04:35 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this denial-of-service condition?

Internet-facing services instrumented with an affected Datadog tracer are exposed when W3C Trace Context extraction is enabled. This extraction is enabled by default unless tracecontext has been explicitly removed from the propagation-style configuration.

2

What must an attacker do to exploit the issue?

An unauthenticated remote attacker only needs to send requests with a tracestate header containing an oversized Datadog dd= entry or a very large number of semicolon-separated key:value pairs. Processing those pairs can consume unbounded CPU and memory for each request.

3

What can be done if upgrading is not immediately possible?

Remove tracecontext from DD_TRACE_PROPAGATION_STYLE_EXTRACT, for example by setting it to datadog. Also enforce a maximum HTTP request-header size at an upstream proxy or web server.

4

Which version contains the fix?

The issue is resolved in dd-trace-rs version 0.3.3 and later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203