CVE-2026-50271

dd-trace-py: Improper parsing of W3C baggage headers may lead to DoS

Published Jul 17, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Datadog dd-trace-py is the Datadog Python APM client. Prior to 4.8.2, Datadog tracing libraries that implement W3C baggage propagation parse incoming baggage HTTP headers without enforcing DD_TRACE_BAGGAGE_MAX_ITEMS or DD_TRACE_BAGGAGE_MAX_BYTES limits on the extract path. A remote, unauthenticated attacker can send a request whose baggage header contains an arbitrarily large number of comma-separated key-value pairs or a single very large value, causing unbounded CPU and memory consumption and enabling a remote denial of service against HTTP services with baggage propagation enabled. This issue is fixed in version 4.8.2.

Analysis

AI-generated

Technical impact

Datadog dd-trace-py is a Python APM client that parses incoming W3C baggage headers. Until version 4.8.2 it did not enforce DD_TRACE_BAGGAGE_MAX_ITEMS or DD_TRACE_BAGGAGE_MAX_BYTES limits on the extract path, allowing an unauthenticated attacker to send a request with an arbitrarily large number of comma‑separated key‑value pairs or a single very large value. This causes unbounded CPU and memory consumption within the tracing library and can lead to a remote denial of service of any HTTP service that uses baggage propagation. The weakness is a classic example of CWE‑770.

Affected Systems

Any application that uses the Datadog dd-trace-py library version 4.8.1 or earlier with W3C baggage propagation enabled is vulnerable. This includes custom Python services that import dd-trace-py, as well as any frameworks that automatically integrate the library. The fix is contained in dd-trace-py version 4.8.2 and later.

Risk and Exploitability

The CVSS score is 7.5, indicating a high likelihood of significant impact if exploited. The EPSS score of less than 1% shows a low probability of current exploitation, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is likely a remotely triggered HTTP request, requiring no authentication and not limited to a specific environment. The risk is mitigated primarily by upgrading to a patched version or applying additional controls to limit baggage header size.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade dd-trace-py to version 4.8.2 or newer to apply the vendor fix.
  • If an upgrade is not immediately possible, consider configuring application code to reject or truncate baggage headers that exceed acceptable length thresholds. This can be achieved by inspecting the 'baggage' header early in request processing and returning a client error before the library processes it.
  • Disable W3C baggage propagation entirely if it is not required for your tracing strategy, thereby eliminating the attack surface related to header size limits.

Generated by OpenCVE AI on July 30, 2026 at 23:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mw54-j2v2-42hr dd-trace-py: Improper parsing of W3C baggage headers may lead to DoS
History
Type Values Removed Values Added
First Time appeared Datadog
Datadog dd-trace-py
Vendors & Products Datadog
Datadog dd-trace-py
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Datadog dd-trace-py is the Datadog Python APM client. Prior to 4.8.2, Datadog tracing libraries that implement W3C baggage propagation parse incoming baggage HTTP headers without enforcing DD_TRACE_BAGGAGE_MAX_ITEMS or DD_TRACE_BAGGAGE_MAX_BYTES limits on the extract path. A remote, unauthenticated attacker can send a request whose baggage header contains an arbitrarily large number of comma-separated key-value pairs or a single very large value, causing unbounded CPU and memory consumption and enabling a remote denial of service against HTTP services with baggage propagation enabled. This issue is fixed in version 4.8.2.
Title dd-trace-py: Improper parsing of W3C baggage headers may lead to DoS
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 20, 2026, 7:16 PM
Reserved
Jun 4, 2026, 4:26 PM
Status
Awaiting Analysis
Published
Jul 17, 2026, 9:17 PM
Modified
Oct 24, 2026, 8:10 PM