MODERATE 5.3

CVE-2026-118259

opentelemetry-java: Quadratic CPU consumption in W3C tracestate parsing

Description

Summary

OpenTelemetry Java's W3C trace-context propagator permits excessive CPU consumption when extracting crafted tracestate headers, potentially leading to denial of service. Regex backtracking causes quadratic parsing time for headers containing long runs of spaces or tabs without a following comma.

Impact

An unauthenticated attacker whose headers reach W3CTraceContextPropagator.extract() can cause excessive CPU usage through crafted requests. Parsing blocks the calling thread, potentially affecting other connections when extraction runs on a shared event-loop thread. Actual impact depends on ingress header-size limits, proxy configuration, and threading. Header-size limits reduce the per-request cost but do not eliminate the vulnerability.

Patches

Upgrade io.opentelemetry:opentelemetry-api to version 1.67.0 or later. PR #8914 replaces regex delimiter splitting with literal comma scanning and explicit whitespace trimming.

Workarounds

If upgrading is not possible, reject or remove oversized tracestate headers before trace-context extraction. This reduces the per-request parsing cost but does not eliminate the risk from repeated requests.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
io.opentelemetry » opentelemetry-api
< 1.67.0
1.67.0

Blast radius

1affected artifacts
142affected versions
15,112dependent artifacts (est.)
661,181dependent versions

77% of the dependent artifacts (11,776) still pull an affected version in their latest release.

DepthDependent versions
Direct
55,213
2 hops
201,297
3 hops
249,858
4 hops
109,057
5 hops
34,542
6 hops
11,214

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.