Skip to main content

OpenTelemetry Python CVE-2026-126360

| EUVDEUVD-2026-124741 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-11-12 GitHub_M GHSA-mf5v-w3w3-f6cg
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Reach JSON carrier extracting trace context
  2. Delivery
    Craft traceparent with prefix, long whitespace, embedded newline
  3. Exploit
    Trigger quadratic regex backtracking in extract()
  4. Execution
    Exhaust event-loop CPU
  5. Impact
    Delay/deny unrelated requests

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity 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

Exploitation requires an attacker-controlled carrier that both preserves embedded newline (CR/LF) characters and permits a sufficiently large value to reach TraceContextTextMapPropagator.extract(); the payload is a traceparent containing a trace-context prefix, a long whitespace sequence, and an embedded newline. The critical LIMITING factor is that conforming HTTP header values cannot contain embedded newlines, so standard HTTP-header trace propagation is NOT exploitable - the practical path is JSON-based carriers (the advisory names MCP request metadata extracted from JSON params._meta), where escaped newlines decode to real newlines. Further limits: exposure depends on the MCP SDK/instrumentation version, whether extraction actually invokes the W3C Trace Context propagator, and applicable message-size limits; impact is amplified specifically when extraction runs on an asynchronous server's event-loop thread. Affected versions are opentelemetry-api <= 1.45.1.

Impact

This is a genuine but modest-priority issue, not a critical one. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, base 5.3 Medium) encodes a network-reachable, no-privilege, no-interaction flaw whose only impact is partial availability loss - consistent with the advisory, which demonstrates denial of service via CPU exhaustion and explicitly disclaims any disclosure, modification, or code execution. The vuln.today Decision label is 'this_month' (not act_now/emergency), which aligns with a non-weaponized DoS. No EPSS score, no CISA KEV listing, and no SSVC decision data were provided in the input, so exploitation-probability and automatability signals are unavailable rather than conflicting. There is no public exploit referenced - only fix PRs and commits - so this is a theoretical/known-mechanism ReDoS without confirmed in-the-wild use. The one notable tension is the AC:L rating: the advisory makes clear exploitation is NOT trivial against typical deployments, since conforming HTTP headers cannot carry the embedded newline the payload requires; a real attack path needs a newline-preserving JSON carrier (e.g., MCP params._meta), which narrows real-world exposure well below what AV:N/AC:L alone implies. Treat as a patch-this-cycle availability bug, prioritized higher only for services that extract trace context from untrusted JSON carriers on an async event loop.

Exploit ScenarioDerived

An attacker who can submit JSON to a service that extracts W3C trace context from an untrusted carrier (for example MCP request metadata in params._meta) sends a traceparent value with a trace-context prefix, a long whitespace run, and an embedded newline. The malformed value forces quadratic-time regex backtracking in TraceContextTextMapPropagator.extract(), and because parsing runs on the asynchronous server's event-loop thread, a single crafted message consumes excessive CPU and stalls unrelated requests; repeating it sustains degradation. No public exploit is identified at time of analysis, though fix PRs/commits describe the trigger precisely.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 12, 2026

Regular-expression denial of service in the opentelemetry-api package (versions up to and including 1.45.1) lets an attacker who can control a propagated traceparent value force quadratic-time regex backtracking inside TraceContextTextMapPropagator.extract(), burning CPU on the thread that performs extraction. The practical attack path is narrow: conforming HTTP header values cannot contain embedded newlines, so standard HTTP-header propagation is not exploitable - the described vector is a JSON-based carrier (the advisory names MCP request metadata decoded from JSON params._meta) that preserves an embedded newline and allows a large value, with the worst effect when extraction runs on an asynchronous server's event-loop thread and stalls unrelated requests. Impact is limited to availability (CPU consumption and request-processing delays); the advisory does not establish disclosure, modification, or code execution, and no public exploit code or CISA KEV entry is associated with this issue. A vendor fix is released in 1.45.2.

RemediationAI

Upgrade opentelemetry-api to 1.45.2 or later - the vendor-released patch, published as the v1.45.2 release (https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.45.2) and implemented in pull requests 5818 (https://github.com/open-telemetry/opentelemetry-python/pull/5818) and 5856 plus commits 78123a2755c907c602e02352aebed4be86aa5350 and faa72dae511ae64a7bf8ca63eff9ad4387d0b939; 1.45.2 rejects traceparent values longer than 512 characters before regex matching and removes the overlapping suffix and trailing-whitespace expressions. Where upgrading is temporarily unavailable, the advisory's recommended workaround is to reject oversized values and embedded CR/LF characters before untrusted trace-context values reach the affected propagator - placing a length/character filter in front of extract() for JSON-derived carriers such as MCP params._meta. The trade-off is that a strict filter will also discard non-conforming or experimental future-version traceparent strings, breaking trace continuity for those senders, but legitimate version-00 traceparent values are 55 characters and contain no newlines, so normal tracing is unaffected; conversely, simply relying on HTTP header validation is not a mitigation for JSON carriers, because header rules do not constrain a traceparent embedded in a request body. The vendor's position is that updating is the complete fix; until then, limiting message size on JSON endpoints that feed trace extraction also reduces the worst-case backtracking cost.

Affected VersionsENISA

opentelemetry-python < 1.45.2

Affected Packages

pypi opentelemetry-api fix: 1.45.2
euvd opentelemetry_python fix: 1.45.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 flaw is CWE-1333 (inefficient regular expression complexity) in opentelemetry-api's W3C Trace Context propagator. The pre-fix pattern was "^[ \t]*([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})(-.*)?[ \t]*$": the optional greedy suffix group and the trailing whitespace class overlap, so a value made of a valid trace-context prefix, a long run of spaces/tabs, and an embedded newline forces the engine to retry the suffix and trailing-whitespace alternatives in many combinations before failing, producing quadratic-time backtracking. The upstream fix in PR 5818 does two things: it short-circuits extraction when the header exceeds _TRACEPARENT_MAXIMUM_LENGTH = 512 characters (logging a warning and returning the unchanged context), and it rewrites the suffix group as the mutually exclusive "(?:(-.*)|[ \t]*)$" so the alternatives no longer overlap. The 512-character cap is far above any legitimate W3C traceparent (a version-00 traceparent is 55 characters), so it does not affect conforming traffic. Exposure is gated by carrier semantics rather than by the regex alone: HTTP header validation forbids embedded CR/LF, whereas JSON strings carry escaped newlines that become real newline characters after decoding, and the advisory flags MCP request metadata (JSON params._meta) as a concrete integration path. Whether a given deployment is reachable depends on the MCP SDK or instrumentation version, on whether extraction actually invokes the W3C Trace Context propagator, and on message-size limits; extraction on an async event-loop thread amplifies the delay. A related advisory, GHSA-xcq7-p3pf-p88h, covers a similar issue in tracestate handling. Note that the supplied CVSS vector (AV:N/AC:L/PR:N/UI:N) differs from our assessed vector (AC:H), reflecting these carrier and deployment preconditions.

Know when Opentelemetry Python 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 (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 3.7 LOW

Network-reachable with no privileges, but a successful trigger needs an uncommon newline-preserving JSON carrier rather than normal HTTP headers (AC:H); impact is availability-only (A:L), no C/I.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 23:03 EUVD
CVE Published
Nov 12, 2026 - 22:24 cve.org
MEDIUM 5.3

DescriptionCVE.org

OpenTelemetry Python provides the Python API and SDK for OpenTelemetry. Prior to 1.45.2, TraceContextTextMapPropagator.extract() in opentelemetry-api can perform quadratic-time regular-expression backtracking on a malformed traceparent value containing a trace-context prefix, a long whitespace sequence, and an embedded newline. Exploitation requires an attacker-controlled carrier that preserves embedded newlines and permits a sufficiently large value, because conforming HTTP header values cannot contain embedded newlines. JSON-based carriers, including applicable MCP request metadata integrations, can preserve the required newline depending on the SDK, instrumentation, and message-size limits. Parsing on an asynchronous server's event-loop thread can consume excessive CPU and delay unrelated requests, while the advisory does not establish disclosure, modification, or code execution. This issue is fixed in version 1.45.2.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 64,974 pypi packages depend on opentelemetry-api (2,379 direct, 62,951 indirect)

Ecosystem-wide dependent count for version 1.45.2.

Threat Intelligence Overview

EPSS Score
0.5%
Top 55% exploitable
Prevalence
High
widely adopted observability SDK across cloud-native and microservice Python deployments
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: +20
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.

Vendor StatusVendor

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