Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-mw54-j2v2-42hr: dd-trace-py: Improper parsing of W3C baggage headers may lead to DoS

0
High
Published: 07/15/2026 (07/15/2026, 22:55:24 UTC)
Source: GCVE Database
Product: ddtrace

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

PyPIghsa
ddtrace
Affected versions
<4.8.2

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

AILast updated: 07/16/2026, 10:48:26 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses