GHSA-mw54-j2v2-42hr: dd-trace-py: Improper parsing of W3C baggage headers may lead to DoS
The dd-trace-py library versions prior to 4.8.2 improperly parse 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 consumption. This leads to a remote denial of service (DoS) against HTTP services using the affected tracer with baggage propagation enabled by default.
AI Analysis
Technical Summary
Datadog's dd-trace-py library before version 4.8.2 does not enforce item-count or byte-size limits on incoming W3C baggage HTTP headers during extraction, although such limits exist for injection. An attacker can exploit this by sending requests with arbitrarily large numbers of comma-separated key-value pairs or very large values in the baggage header. Each pair causes the tracer to allocate a hash-map entry, resulting in unbounded resource consumption and enabling a remote denial of service. The vulnerability affects any internet-facing service instrumented with the affected tracer version and using the default baggage propagation style.
Potential Impact
A remote, unauthenticated attacker can cause a denial of service by exhausting CPU and memory resources of the affected service through specially crafted HTTP requests with large or numerous baggage header items. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
A fix is available in dd-trace-py version 4.8.2 and later; upgrading to these versions 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-mw54-j2v2-42hr: dd-trace-py: Improper parsing of W3C baggage headers may lead to DoS
Description
The dd-trace-py library versions prior to 4.8.2 improperly parse 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 consumption. This leads to a remote denial of service (DoS) against HTTP services using the affected tracer with baggage propagation enabled by default.
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-py library before version 4.8.2 does not enforce item-count or byte-size limits on incoming W3C baggage HTTP headers during extraction, although such limits exist for injection. An attacker can exploit this by sending requests with arbitrarily large numbers of comma-separated key-value pairs or very large values in the baggage header. Each pair causes the tracer to allocate a hash-map entry, resulting in unbounded resource consumption and enabling a remote denial of service. The vulnerability affects any internet-facing service instrumented with the affected tracer version and using the default baggage propagation style.
Potential Impact
A remote, unauthenticated attacker can cause a denial of service by exhausting CPU and memory resources of the affected service through specially crafted HTTP requests with large or numerous baggage header items. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
A fix is available in dd-trace-py version 4.8.2 and later; upgrading to these versions 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-mw54-j2v2-42hr
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-50271"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a58b40468715ace43d67060
Added to database: 07/16/2026, 10:35:48 UTC
Last enriched: 07/16/2026, 10:48:26 UTC
Last updated: 07/16/2026, 11:48:10 UTC
Views: 3
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.