CVE-2026-45292
OpenTelemetry Java SDK has Unbounded Memory Allocation in W3C Baggage Propagation
Description
Overview
A vulnerability affects the baggage propagation implementation in
opentelemetry-api and opentelemetry-extension-trace-propagators. Parsing oversized baggage
causes unbounded memory allocation and CPU consumption. Because baggage is automatically
re-injected into every outgoing request, the effect can fan out to downstream services that
never received the original malicious request.
Technical Details
W3CBaggagePropagatordid not enforce any limit on the total size or entry count of thebaggageheader. The parser iterated character-by-character through the entire value regardless of length.JaegerPropagatorandOtTracePropagatorhad the same gap in their respective baggage extraction paths.- The W3C Baggage specification recommends a maximum of 8,192 bytes and 180 entries; none of these limits were enforced.
Impact
The practical availability impact for most deployments is limited. Every major Java HTTP server enforces its own header size limit (Tomcat, Jetty, Netty, Vert.x, and gRPC-Java all default to 8 KiB), constraining what an external attacker can deliver before the application is reached. The risk is higher when transport-layer limits are absent — e.g., a compromised internal service communicating over a non-HTTP or custom transport.
Remediation
Update to version 1.62.0 or later (#8380). The fix enforces limits consistent with the W3C Baggage specification at the propagator level:
- Maximum total baggage size: 8,192 bytes across all
baggageheader values - Maximum number of entries: 64
Headers that would exceed either limit are dropped at the point the limit is reached; already-extracted valid entries are retained.
Workarounds
Ensure HTTP header size limits are configured at the server or gateway level. Most Java HTTP servers enforce an 8 KiB header limit by default, which mitigates external attack vectors independently of this fix.
References
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.opentelemetry » opentelemetry-api | < 1.62.0 | 1.62.0 |
| io.opentelemetry » opentelemetry-extension-trace-propagators | < 1.62.0 | 1.62.0 |
Blast radius
58% of the dependent artifacts (8,002) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 53,182 |
| 2 hops | 187,691 |
| 3 hops | 218,887 |
| 4 hops | 93,837 |
| 5 hops | 29,243 |
| 6 hops | 10,572 |
Most used dependents
- org.apache.kafka » kafka-clients3,135 usages
- org.seleniumhq.selenium » selenium-java2,089 usages
- com.typesafe.play » play-test1,902 usages
- org.apache.kafka » kafka1,450 usages
- org.scalatestplus.play » scalatestplus-play1,286 usages
- io.opentelemetry » opentelemetry-sdk1,065 usages
- org.apache.kafka » connect-api1,026 usages
- org.apache.hbase » hbase-client960 usages
- com.aliyun.oss » aliyun-sdk-oss791 usages
- com.jetbrains.intellij.platform » ide-impl753 usages
- com.jetbrains.intellij.platform » editor-ui705 usages
- org.apache.hive » hive-exec699 usages
- org.apache.hbase » hbase-common674 usages
- com.jetbrains.intellij.platform » project-model666 usages
- org.apache.kafka » connect-transforms659 usages
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.
References
- Webhttps://github.com/open-telemetry/opentelemetry-java/security/advisories/GHSA-rcgg-9c38-7xpx
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-45292
- Webhttps://github.com/open-telemetry/opentelemetry-java/pull/8380
- Webhttps://github.com/open-telemetry/opentelemetry-java/commit/03837d3c1763bc35464aea1078671e2ef2336a5f
- Packagehttps://github.com/open-telemetry/opentelemetry-java
- Webhttps://github.com/open-telemetry/opentelemetry-java/releases/tag/v1.62.0
