Datadog: dd-trace-rb: Improper parsing of W3C baggage headers may lead to DoS (CVE-2026-50276)
Description
dd-trace-rb is Datadog's client library for Ruby. Prior to 2.32.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 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 2.32.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-rb library for Ruby, used for tracing in Datadog, does not enforce limits on the number of items or total size when extracting W3C baggage headers prior to version 2.32.0. While limits are enforced during baggage injection, extraction parsing allocates entries for every request without limit, allowing an attacker to cause excessive resource consumption by sending a large or numerous baggage header entries. This results in a denial of service condition. The vulnerability is tracked as CVE-2026-50276 and has a CVSS 3.1 base score of 7.5 (high severity).
Potential Impact
A remote unauthenticated attacker can exploit this vulnerability by sending maliciously crafted HTTP baggage headers to cause unbounded CPU and memory usage in affected services, leading to denial of service. There is no impact on confidentiality or integrity, but availability is severely affected.
Mitigation Recommendations
This vulnerability is fixed in dd-trace-rb version 2.32.0. Users should upgrade to version 2.32.0 or later to remediate this issue. No other mitigations are specified or required.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-p5f6-rccc-jv98
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-50276"]
- Ecosystems
- ["RubyGems"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a58b40468715ace43d67025
Added to database: 07/16/2026, 10:35:48 UTC
Last enriched: 09/14/2026, 22:13:30 UTC
Last updated: 10/16/2026, 06:48:17 UTC
Views: 163
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.