Skip to main content

dd-trace-py CVE-2026-50271

| EUVDEUVD-2026-45329 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-07-15 https://github.com/DataDog/dd-trace-py GHSA-mw54-j2v2-42hr
7.5
CVSS 3.1 · Vendor: https://github.com/DataDog/dd-trace-py
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify reachable service running vulnerable ddtrace
  2. Delivery
    Craft baggage header with massive key-value list
  3. Exploit
    Send unauthenticated HTTP request
  4. Execution
    Tracer allocates hash-map entry per pair
  5. Persist
    Repeat to exhaust CPU and memory
  6. Impact
    Service degradation or denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target service must run dd-trace-py < 4.8.2 AND have the W3C 'baggage' propagation style enabled on the extract path - which is the default in most affected tracers, so no non-default configuration is required to be vulnerable. Exploitation needs only network reachability to an HTTP endpoint that performs baggage extraction; no authentication, credentials, or user interaction is required (PR:N/UI:N). The primary limiting factor is configuration: a deployment that has explicitly narrowed DD_TRACE_PROPAGATION_STYLE / DD_TRACE_PROPAGATION_STYLE_EXTRACT to exclude 'baggage', or that truncates oversized headers at an upstream proxy, is not exploitable via this path.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (base 7.5, HIGH) is internally consistent with the description: network-reachable, low complexity, no privileges, no user interaction, availability-only impact. This is a real, easy-to-trigger DoS rather than an inflated high score, since exploitation is one unauthenticated HTTP request against a default-enabled feature with no race or timing dependency. No EPSS score and no CISA KEV entry were provided, and no proof-of-concept is referenced, so there is no evidence of active or widespread exploitation yet - treat this as a patch-soon availability risk, not an RCE emergency. The tempering factors are that impact is confined to availability (no confidentiality or integrity loss) and that it can be blunted at the perimeter via header-size limits, so prioritize internet-facing, high-traffic Python services first.

Exploit ScenarioDerived

An attacker finds a reachable Python web service instrumented with a vulnerable dd-trace-py version and default baggage propagation, then sends HTTP requests carrying a 'baggage' header packed with hundreds of thousands of comma-separated key-value pairs (or one enormous value). Each request forces the tracer to build a hash-map entry per pair, spiking CPU and memory until a modest flood exhausts server resources and knocks the service offline. Given AV:N/AC:L/PR:N/UI:N, no authentication, tooling, or user interaction is needed, though no public proof-of-concept is currently identified.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 15, 2026

Remote denial of service in Datadog's dd-trace-py Python tracing library (versions before 4.8.2) lets unauthenticated attackers exhaust CPU and memory by sending oversized W3C 'baggage' HTTP headers. The DD_TRACE_BAGGAGE_MAX_ITEMS (64) and DD_TRACE_BAGGAGE_MAX_BYTES (8192) safeguards were enforced only on baggage injection, never on extraction, so a single crafted request with a huge number of comma-separated pairs forces the tracer to allocate a hash-map entry per pair on every request. Because the baggage propagation style is enabled by default, any reachable service instrumented with an affected tracer is exposed; no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade dd-trace-py ('ddtrace') to version 4.8.2 or later, per Datadog advisory GHSA-mw54-j2v2-42hr (https://github.com/DataDog/dd-trace-py/security/advisories/GHSA-mw54-j2v2-42hr). If you cannot upgrade immediately, disable baggage extraction by removing 'baggage' from DD_TRACE_PROPAGATION_STYLE (or from DD_TRACE_PROPAGATION_STYLE_EXTRACT if it is set independently); the trade-off is loss of baggage-based context propagation across traced services, while core tracing continues to function. As a complementary perimeter control, cap the maximum HTTP request header size at an upstream proxy or web server - for example Apache LimitRequestFieldSize, Nginx large_client_header_buffers, or Envoy max_request_headers_kb - which limits the attack payload but must be tuned so legitimate large headers (cookies, auth tokens) are not rejected.

Affected VersionsENISA

dd-trace-py < 4.8.2

Affected Packages

pypi ddtrace fix: 4.8.2
euvd dd_trace_py fix: 4.8.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The weakness sits in dd-trace-py's implementation of W3C Trace Context 'baggage' propagation, a standard that carries arbitrary application key-value context in the HTTP 'baggage' header across distributed services. On the extract (inbound) path the parser splits the header into comma-separated key-value pairs and materializes each into a hash-map entry without first validating the count against DD_TRACE_BAGGAGE_MAX_ITEMS or total size against DD_TRACE_BAGGAGE_MAX_BYTES - those limits were wired only into the inject (outbound) path. This is a textbook CWE-400 Uncontrolled Resource Consumption, where attacker-controlled untrusted input drives unbounded allocation. The affected component is the PyPI distribution 'ddtrace' (CPE pkg:pip/ddtrace). Datadog notes the same design flaw class affects sibling baggage implementations, citing advisories for opentelemetry-go (GHSA-mh2q-q3fh-2475) and opentelemetry-dotnet (GHSA-g94r-2vxg-569j).

Know when Nginx gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/DataDog/dd-trace-py) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

A single unauthenticated network request against a default-enabled feature triggers unbounded allocation, so AV:N/AC:L/PR:N/UI:N with availability-only impact (A:H, C:N/I:N).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/DataDog/dd-trace-py).

CVSS VectorVendor: https://github.com/DataDog/dd-trace-py

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Impact

Datadog tracing libraries that implement W3C baggage propagation parse incoming baggage HTTP headers without enforcing item-count or byte-size limits on the extract path. The DD_TRACE_BAGGAGE_MAX_ITEMS (default 64) and DD_TRACE_BAGGAGE_MAX_BYTES (default 8192) limits were applied only to baggage injection, not extraction. 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). The tracer allocates a hash-map entry for each pair on every request, causing unbounded CPU and memory consumption and enabling a remote Denial of Service against any HTTP service that has the baggage propagation style enabled. The baggage propagation style is enabled by default in most affected tracers, so any internet-facing service that has been instrumented with an affected tracer version is exposed unless the propagation style has been explicitly narrowed.

Patches

This is resolved in version 4.8.2 and later of the dd-trace-py library

Workarounds

If users cannot upgrade immediately:

  1. Disable baggage extraction by removing baggage from DD_TRACE_PROPAGATION_STYLE (or DD_TRACE_PROPAGATION_STYLE_EXTRACT if set independently).
  2. Cap the maximum HTTP request header size at an upstream proxy or web server (for example, Apache LimitRequestFieldSize, Nginx large_client_header_buffers, Envoy max_request_headers_kb).

Resources

Related upstream advisories: opentelemetry-go GHSA-mh2q-q3fh-2475 opentelemetry-dotnet GHSA-g94r-2vxg-569j

Executive ViewAI

Why It Matters

A remote denial-of-service vulnerability in Datadog's dd-trace-py library (pre-4.8.2) allows unauthenticated attackers to crash Python services through resource exhaustion via malformed HTTP headers. The flaw affects any service with the tracer enabled in its default configuration, risking service availability for organizations relying on Datadog instrumentation across their Python application stack.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable baggage propagation via environment variable DD_TRACE_BAGGAGE_ENABLED=false, implement HTTP header size validation at network ingress to reject payloads exceeding 8192 bytes, deploy request rate-limiting rules to reduce denial-of-service impact, increase monitoring and alerting on CPU and memory utilization of affected services to detect exploitation attempts, and consider temporary disabling of dd-trace on the highest-risk services until a patch is available.

Threat Intelligence Overview

EPSS Score
0.8%
Top 48% exploitable
Prevalence
High
dd-trace-py is a widely deployed enterprise APM instrumentation library
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Nginx

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2013-2028 HIGH POC
7.5 Jul 20

The ngx_http_parse_chunked function in http/ngx_http_parse.c in nginx 1.3.9 through 1.4.0 allows remote attackers to cau

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2013-4547 HIGH POC
7.5 Nov 23

nginx 0.8.41 through 1.4.3 and 1.5.x before 1.5.7 allows remote attackers to bypass intended restrictions via an unescap

CVE-2023-50919 CRITICAL POC
9.8 Jan 12

An issue was discovered on GL.iNet devices before version 4.5.0. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2017-7529 HIGH
7.5 Jul 13

Nginx versions since 0.5.6 up to and including 1.13.2 are vulnerable to integer overflow vulnerability in nginx range fi

CVE-2016-0742 HIGH
7.5 Feb 15

The resolver in nginx before 1.8.1 and 1.9.x before 1.9.10 allows remote attackers to cause a denial of service (invalid

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2026-123633 CRITICAL POC
9.2 Nov 18

Use-after-free in NGINX Plus and NGINX Open Source can crash a worker process handling HTTP/2-proxied requests and, if A

CVE-2026-123007 CRITICAL POC
9.2 Nov 18

Heap buffer overflow in NGINX Plus and NGINX Open Source when HTTP/2 is enabled lets remote, unauthenticated attackers c

CVE-2024-49368 HIGH POC
8.9 Oct 21

Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 8.9), this vulnerability is remotel

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy