OpenTelemetry Python by OpenTelemetry: quadratic tracestate parsing can exhaust CPU

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-114603?

CVE-2026-114603 is a vulnerability classified as Uncontrolled Resource Consumption and Inefficient Regular Expression Complexity, affecting opentelemetry-python (affected versions: < 1.45.1). This vulnerability is rated Medium, with a CVSS score of 5.3. There is not enough data to determine whether this vulnerability has been exploited.

Overview

Original source data

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.

Affected products and scope

  • open-telemetry/opentelemetry-python, specifically the opentelemetry-api package: the normalized record marks releases < 1.45.1 as affected.
  • The vendor advisory describes the affected scope as <= 1.45.0 and confirms the pattern in the v1.44.0 and v1.45.0 tags. It also reports the pattern back to v1.0.0, but says that every intervening release was not exhaustively checked.
  • Affected components include TraceState.from_header and the call path from TraceContextTextMapPropagator.extract.
  • The confirmed patched release is 1.45.1. The status of unverified parallel or later branches should not be inferred.

Technical details

The affected path is TraceContextTextMapPropagator.extract, which passes inbound W3C tracestate values to TraceState.from_header in opentelemetry/trace/span.py. The parser uses a regular expression with an unbounded optional-whitespace segment before a comma, so a malformed value containing a long run of spaces or tabs without a following comma can trigger quadratic backtracking. The member-count limit is applied only after this expensive parsing step, so it does not bound the cost of the malformed input. Exploitation requires network reachability to a service that accepts the header, uses the default W3C Trace Context propagator, and permits a sufficiently large header through its HTTP server, parser, gateway, or custom carrier. The exact effective size threshold is deployment-dependent, and the record does not establish a universal server or proxy limit. The weakness is consistent with uncontrolled resource consumption and inefficient regular-expression complexity.

Exploitability

Reachability is network-based and does not require authentication or user interaction when the vulnerable parsing path is exposed to an unauthenticated request. The triggering input is a malformed W3C tracestate header with a sufficiently long run of spaces or tabs and no following comma. Attack complexity is low in deployments that accept such a header, but the practical precondition is significant: the HTTP server, parser, gateway, or custom carrier must pass a large enough value to the application. The vendor advisory includes a public reproduction demonstration of worker or event-loop delay; this demonstrates exploitability in a test setup, not observed real-world exploitation. The supplied record does not establish a named campaign, victim, or confirmed in-the-wild exploitation.

Technical impact

The direct technical outcome is CPU exhaustion during header parsing, with scope confined to service availability. One request can occupy a synchronous worker, and CPU-bound parsing can delay unrelated requests sharing an asynchronous event loop; repeated requests could make the degradation persistent if upstream controls allow them through. Confidentiality and integrity are not affected according to the supplied evidence, and there is no established code-execution path. Organisationally, the likely consequences are elevated latency, reduced concurrency, failed or timed-out requests, and possible service unavailability for affected endpoints. Severity depends on request-header limits, concurrency model, rate limiting, and whether the default propagator is active.

Business impact

An attacker may cause elevated CPU consumption and increased response latency by sending malformed propagation metadata to an exposed service. In a synchronous server, a worker can remain busy while the header is parsed; in an asynchronous server, other requests on the same event loop may be delayed. Repeated requests could reduce service capacity or sustain a denial-of-service condition where header-size controls do not stop the input. The issue is limited to availability; the supplied evidence does not indicate telemetry disclosure, telemetry modification, or code execution.

Remediation

  1. Upgrade opentelemetry-api to the confirmed fixed release 1.45.1. The vendor fix changes the vulnerable parsing operation to linear-time processing and discards combined tracestate headers longer than 8192 characters.
  2. Until the package is upgraded, enforce conservative request-header limits at the HTTP server or gateway, including a limit that prevents oversized tracestate values from reaching the application. This is a mitigation, not a substitute for the package fix.
  3. Verify the deployed package after rollout across every environment and release branch, and do not assume that an unverified parallel or later branch is safe without vendor confirmation.
  4. Test the service's actual propagation path and edge limits using non-production validation, then monitor CPU and latency during rollout. Avoid relying on the absence of observed failures as proof that the parser is no longer reachable.

Detection

  1. Inventory Python environments and containers for the opentelemetry-api package, then compare each installed release with the supported affected and fixed boundaries in the affected summary and remediation guidance.
  2. Confirm whether the service enables the default W3C Trace Context propagator and whether TraceContextTextMapPropagator.extract can receive untrusted tracestate values from public or semi-trusted HTTP paths.
  3. Review HTTP server, reverse proxy, gateway, and custom-carrier settings for effective request-header limits, including whether combined tracestate values can exceed the W3C and deployment limits.
  4. Review CPU, request latency, worker occupancy, and event-loop lag around requests carrying unusually large or malformed tracestate values. This is a precautionary correlation check, not a confirmed indicator, and absence of such telemetry does not prove safety.
  5. Look for rejected oversized headers at the edge and accepted large tracestate headers reaching the application. No specific log signature or IOC is established by the record.
Sources (12)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.