datadog/dd-trace is vulnerable to Denial of Service (DoS)
75
CVE Score
High
Denial of Service (DoS)
The tracer parses incoming W3C baggage propagation HTTP headers on the extract path without enforcing item-count or byte-size limits. The DD_TRACE_BAGGAGE_MAX_ITEMS (default 64) and DD_TRACE_BAGGAGE_MAX_BYTES (default 8192) limits were applied only when injecting baggage, not when extracting it. A remote, unauthenticated attacker can send a request whose baggage header contains an arbitrarily large number of comma-separated key-value pairs or a single very large value, causing the tracer to allocate a hash-map entry per pair on every request and consume unbounded CPU and memory. The fix restricts the accepted amount of extracted tags and baggage on the extraction path.
Upgrade the datadog/dd-trace library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and the baggage propagation style is enabled for extraction, which is the default in most configurations.
0.0.1 - 1.19.1
Fixed in 1.19.2datadog/dd-trace is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.19.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.