CVE-2026-50276
CVE-2026-50276 · dd-trace-rb: Improper parsing of W3C baggage headers may lead to DoS
CVSS 7.5 · High · EPSS 0.8% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- dd-trace-rbNo fix published
- datadog RubyGemsUpdate to 2.32.0
Check the installed version:
gem list --exact datadogAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Stack: ruby
Affected products and versions
dd-trace-rb
- Versions
- < 2.32.0: Affected
No fix published
datadog RubyGems
- Versions
- 2.0.0
- 2.0.0.beta1
- 2.0.0.beta2
- 2.0.0.rc1
- 2.1.0
- 2.10.0
All versions (38)
- 2.11.0
- 2.12.0
- 2.12.1
- 2.12.2
- 2.13.0
- 2.14.0
- 2.15.0
- 2.16.0
- 2.17.0
- 2.18.0
- 2.19.0
- 2.2.0
- 2.20.0
- 2.21.0
- 2.22.0
- 2.23.0
- 2.24.0
- 2.25.0
- 2.26.0
- 2.27.0
- 2.28.0
- 2.29.0
- 2.3.0
- 2.30.0
- 2.31.0
- 2.4.0
- 2.5.0
- 2.6.0
- 2.7.0
- 2.7.1
- 2.8.0
- 2.9.0
- Affected ranges
- ECOSYSTEM: < 2.32.0
Update to 2.32.0
Original sources
- https://github.com/DataDog/dd-trace-rb/security/advisories/GHSA-p5f6-rccc-jv98
- https://github.com/DataDog/dd-trace-rb/pull/5672
- https://github.com/DataDog/dd-trace-rb/commit/361947090214488778ac4f144e219426ffcf92e6
- https://github.com/DataDog/dd-trace-rb/releases/tag/v2.32.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-50276