Com.datadoghq:dd java agent: dd-trace-java: Improper parsing of W3C baggage headers may lead to DoS (CVE-2026-50270)
Description
dd-trace-java is a Datadog APM client for Java. Prior to 1.62.0, W3C baggage extraction does not enforce DD_TRACE_BAGGAGE_MAX_ITEMS, which defaults to 64, or DD_TRACE_BAGGAGE_MAX_BYTES, which defaults to 8192, although those limits apply during baggage injection. A remote unauthenticated attacker can send a baggage HTTP header containing many comma-separated key-value pairs or a single very large value. The extraction path allocates map entries while parsing the attacker-controlled header on every request, causing unbounded CPU and memory consumption in an HTTP service where the baggage propagation style is enabled, which is the default for most affected tracers. This can cause denial of service. This issue is fixed in version 1.62.0.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The dd-trace-java agent, a Datadog APM client for Java, improperly parses W3C baggage headers before version 1.62.0. While limits on baggage size and item count are enforced during baggage injection, these limits are not applied during extraction. An attacker can exploit this by sending a baggage HTTP header with many comma-separated key-value pairs or a single very large value. The extraction path allocates map entries for each parsed item, causing unbounded CPU and memory usage, resulting in denial of service. The vulnerability is addressed in dd-trace-java version 1.62.0.
Potential Impact
Remote unauthenticated attackers can cause denial of service in HTTP services using dd-trace-java with baggage propagation enabled by sending maliciously crafted baggage headers that exhaust CPU and memory resources. There is no impact on confidentiality or integrity reported.
Mitigation Recommendations
Upgrade dd-trace-java to version 1.62.0 or later, where this issue is fixed. No other mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-74xj-wh4w-vqxc
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-50270"]
- Ecosystems
- ["Maven"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a58b40468715ace43d67064
Added to database: 07/16/2026, 10:35:48 UTC
Last enriched: 09/14/2026, 22:13:08 UTC
Last updated: 10/15/2026, 06:48:16 UTC
Views: 185
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.