GHSA-74j5-xf3v-crq8: dd-trace-go: Improper parsing of W3C baggage headers may lead to DoS
The dd-trace-go library improperly parses W3C baggage HTTP headers without enforcing limits on the number or size of items during extraction. This allows a remote unauthenticated attacker to send requests with excessively large or numerous baggage items, causing unbounded CPU and memory usage. This can lead to a denial of service (DoS) against HTTP services using affected versions of the tracer with baggage propagation enabled. The issue is fixed in dd-trace-go version 2.8.1 and later.
AI Analysis
Technical Summary
Datadog's dd-trace-go library versions prior to 2.8.1 do not enforce item-count or byte-size limits on incoming W3C baggage headers during extraction, although such limits exist for injection. An attacker can exploit this by sending a request with a baggage header containing an arbitrarily large number of comma-separated key-value pairs or a single very large value. Each pair causes the tracer to allocate a hash-map entry, leading to unbounded CPU and memory consumption and enabling remote denial of service. The baggage propagation style is enabled by default in most affected tracers, exposing internet-facing services instrumented with these versions unless explicitly restricted.
Potential Impact
A remote, unauthenticated attacker can cause a denial of service by sending specially crafted HTTP requests with large or numerous baggage header items. This leads to excessive CPU and memory consumption in the dd-trace-go tracer, potentially degrading or crashing the instrumented HTTP service. There is no impact on confidentiality or integrity, only availability.
Mitigation Recommendations
A fix is available in dd-trace-go version 2.8.1 and later; upgrading to this version or newer fully resolves the issue. If immediate upgrade is not possible, users should disable baggage extraction by removing 'baggage' from the DD_TRACE_PROPAGATION_STYLE or DD_TRACE_PROPAGATION_STYLE_EXTRACT environment variables. Additionally, capping the maximum HTTP request header size at an upstream proxy or web server (e.g., Apache LimitRequestFieldSize, Nginx large_client_header_buffers, Envoy max_request_headers_kb) can mitigate the risk.
GHSA-74j5-xf3v-crq8: dd-trace-go: Improper parsing of W3C baggage headers may lead to DoS
Description
The dd-trace-go library improperly parses W3C baggage HTTP headers without enforcing limits on the number or size of items during extraction. This allows a remote unauthenticated attacker to send requests with excessively large or numerous baggage items, causing unbounded CPU and memory usage. This can lead to a denial of service (DoS) against HTTP services using affected versions of the tracer with baggage propagation enabled. The issue is fixed in dd-trace-go version 2.8.1 and later.
CVSS v3.1
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
Datadog's dd-trace-go library versions prior to 2.8.1 do not enforce item-count or byte-size limits on incoming W3C baggage headers during extraction, although such limits exist for injection. An attacker can exploit this by sending a request with a baggage header containing an arbitrarily large number of comma-separated key-value pairs or a single very large value. Each pair causes the tracer to allocate a hash-map entry, leading to unbounded CPU and memory consumption and enabling remote denial of service. The baggage propagation style is enabled by default in most affected tracers, exposing internet-facing services instrumented with these versions unless explicitly restricted.
Potential Impact
A remote, unauthenticated attacker can cause a denial of service by sending specially crafted HTTP requests with large or numerous baggage header items. This leads to excessive CPU and memory consumption in the dd-trace-go tracer, potentially degrading or crashing the instrumented HTTP service. There is no impact on confidentiality or integrity, only availability.
Mitigation Recommendations
A fix is available in dd-trace-go version 2.8.1 and later; upgrading to this version or newer fully resolves the issue. If immediate upgrade is not possible, users should disable baggage extraction by removing 'baggage' from the DD_TRACE_PROPAGATION_STYLE or DD_TRACE_PROPAGATION_STYLE_EXTRACT environment variables. Additionally, capping the maximum HTTP request header size at an upstream proxy or web server (e.g., Apache LimitRequestFieldSize, Nginx large_client_header_buffers, Envoy max_request_headers_kb) can mitigate the risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-74j5-xf3v-crq8
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-50274"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a58b40468715ace43d67029
Added to database: 07/16/2026, 10:35:48 UTC
Last enriched: 07/16/2026, 10:47:51 UTC
Last updated: 07/17/2026, 03:42:33 UTC
Views: 4
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.