Description
OpenTelemetry Python provides the Python API and SDK for OpenTelemetry. Prior to 1.45.1, the opentelemetry-api function TraceState.from_header in opentelemetry/trace/span.py, reached through TraceContextTextMapPropagator.extract, parses inbound W3C tracestate headers with an unbounded optional-whitespace regular expression. A malformed header containing a long run of spaces or tabs without a following comma causes quadratic backtracking before the member-count limit is applied. Services using the default W3C Trace Context propagator can therefore spend excessive CPU time on one unauthenticated request when the HTTP server, parser, gateway, or custom carrier accepts a sufficiently large header. The processing can occupy a synchronous worker or delay unrelated requests on the same asynchronous event loop. The impact is limited to availability and does not expose or modify telemetry data or allow code execution. This issue is fixed in version 1.45.1.
Published: 2026-10-22
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: Availability through CPU exhaustion
Action: Apply Patch
AI Analysis

Impact

The vulnerability arises from the parsing of W3C tracestate headers in the OpenTelemetry Python API. A regular expression that accepts optional whitespace operates without bounds, allowing a header that contains a long sequence of spaces or tabs before a comma to trigger quadratic back‑tracking. This exploits the parser in the TraceContextTextMapPropagator.extract function, causing it to consume excessive CPU resources for a single unauthenticated request. The flaw does not expose or alter telemetry data and does not lead to code execution; its effect is limited to degrading service availability.

Affected Systems

All installations of OpenTelemetry Python that are older than version 1.45.1 are affected. Software built on the open-telemetry:opentelemetry-python package and that use the default W3C Trace Context propagator remains vulnerable. The issue was addressed in release v1.45.1. No other versions are known to be impacted beyond this cutoff.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and the lack of an EPSS score means current exploit probability is unknown. The vulnerability is not listed in CISA’s KEV catalog. An attacker can perform the exploit by sending a single HTTP request with a malicious tracestate header containing an unbounded run of whitespace, which is unauthenticated and can originate from any network or local source. The attack depends on the target accepting large headers, and its impact is to over‑consume CPU time on a worker or event loop, potentially delaying or blocking other requests. Given the lack of code execution or data disclosure, the primary risk is denial of service.

Generated by OpenCVE AI on October 22, 2026 at 16:16 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update opentelemetry‑python to version 1.45.1 or later
  • Implement input validation to limit the length of tracestate headers or reject headers that contain excessively long whitespace sequences
  • Configure rate limiting or connection throttling to mitigate repeated or bulk malicious requests

Generated by OpenCVE AI on October 22, 2026 at 16:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-xcq7-p3pf-p88h OpenTelemetry Python: Unbounded tracestate parsing in opentelemetry-api
History

Thu, 22 Oct 2026 15:45:00 +0000

Type Values Removed Values Added
Description OpenTelemetry Python provides the Python API and SDK for OpenTelemetry. Prior to 1.45.1, the opentelemetry-api function TraceState.from_header in opentelemetry/trace/span.py, reached through TraceContextTextMapPropagator.extract, parses inbound W3C tracestate headers with an unbounded optional-whitespace regular expression. A malformed header containing a long run of spaces or tabs without a following comma causes quadratic backtracking before the member-count limit is applied. Services using the default W3C Trace Context propagator can therefore spend excessive CPU time on one unauthenticated request when the HTTP server, parser, gateway, or custom carrier accepts a sufficiently large header. The processing can occupy a synchronous worker or delay unrelated requests on the same asynchronous event loop. The impact is limited to availability and does not expose or modify telemetry data or allow code execution. This issue is fixed in version 1.45.1.
Title OpenTelemetry Python: Unbounded tracestate parsing in opentelemetry-api
Weaknesses CWE-1333
CWE-400
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-22T15:29:25.108Z

Reserved: 2026-10-21T20:34:25.599Z

Link: CVE-2026-114603

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-22T16:17:34.860

Modified: 2026-10-22T16:17:34.860

Link: CVE-2026-114603

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T16:30:08Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-400

    Uncontrolled Resource Consumption