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.
Published: 2026-07-17
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Datadog
Datadog dd-trace-py
Vendors & Products Datadog
Datadog dd-trace-py

Mon, 20 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 17 Jul 2026 21:00:00 +0000

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'}


Subscriptions

Datadog Dd-trace-py
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T19:16:57.759Z

Reserved: 2026-06-04T16:26:05.984Z

Link: CVE-2026-50271

cve-icon Vulnrichment

Updated: 2026-07-20T19:16:37.860Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T23:30:08Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling