Published 2026-11-13 · Updated 2026-11-23 · Also known as GHSA-rrfc-gjm9-cgrj, GO-2026-6975
Summary
OpenTelemetry-Go eagerly materializes W3C baggage metadata into property objects during parsing, causing memory-allocation amplification for densely populated headers. Engineering teams using affected versions of OpenTelemetry-Go modules should update to the patched release.
Who is affected
Deployments that enable Baggage propagation and extract attacker-controlled inbound context before authentication or on public routes are affected. Concurrent or sustained requests with valid densely populated headers can increase memory allocation and garbage collection pressure, though reliable out-of-memory termination or complete denial of service is not established.
Exploitability
The vulnerability has a CVSS 3.1 base score of 5.3 (MEDIUM) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, indicating network attack vector with low complexity and no privileges required, resulting in low availability impact. The EPSS score is 0.004 (percentile 0.387), and it is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
Upgrade go.opentelemetry.io/otel to version 1.47.0 or later.
Upgrade go.opentelemetry.io/otel/baggage to version 1.47.0 or later.
Upgrade go.opentelemetry.io/otel/propagation to version 1.47.0 or later.
Ensure authentication handlers precede baggage extraction in HTTP compositions where applicable.
How to check your project
Check go.mod or dependency manifest files for go.opentelemetry.io/otel, go.opentelemetry.io/otel/baggage, and go.opentelemetry.io/otel/propagation within version ranges >= 1.0.0-RC1 and < 1.47.0.
Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.
What is the root cause of the memory-allocation amplification?
The parser eagerly materializes W3C baggage metadata into property objects during parsing, causing slice growth, serialization, and copying into internal representations.
Does this vulnerability bypass the raw input limit?
No. The raw-input limit is checked before member parsing; the issue stems from eager representation and copying of dense properties rather than bypassing input size limits.
Is this issue related to CVE-2026-41178 / GHSA-5wrp-cwcj-q835?
No. This is a pre-existing, independent allocation-amplification path that predates that advisory and was not introduced by its fix.
Original advisory description
## Summary
OpenTelemetry Go eagerly materializes W3C baggage metadata into property objects during parsing. Slice growth, serialization, and copying into the internal representation cause **bounded but disproportionate memory-allocation amplification** for a valid, densely populated header. In v1.46.0 and v1.47.0-rc.1, the 8,192-byte raw-input limit is checked before member parsing; this is not unlimited allocation or a bypass of that limit.
A valid 8,191-byte value containing one member and 4,094 properties causes approximately 778 KB of cumulative allocation per parse. A corrected measurement with forced garbage collection before and after parsing retains approximately 164 KB per result while it remains live. These are different metrics: approximately 95 times the input in allocation traffic versus approximately 20 times in incremental live heap in the measured environment.
The relevant security configuration is a service that enables Baggage propagation and extracts attacker-controlled inbound context before authentication or on a public route. Concurrent or sustained requests can increase allocation and GC pressure. The evidence establishes allocation amplification, but does not establish reliable OOM, process termination, or complete denial of service.
This is a **pre-existing, independent allocation-amplification path not addressed by GHSA-5wrp-cwcj-q835 / CVE-2026-41178**. It predates that advisory; it is not described as having been introduced by its fix.
## Affected module, versions, and symbols
- Go module: `go.opentelemetry.io/otel`.
- Import paths and entry points: `go.opentelemetry.io/otel/baggage.Parse` and `go.opentelemetry.io/otel/propagation.Baggage.Extract`.
- Implementation: `parseMember`, property-slice growth and serialization, and conversion into `internal/baggage.Item`.
- Source history places the eager-property implementation at commit `4bf6150fa94e18bdf01c96ed78ee6d1c76f8e308`, first included in `v1.0.0-RC1`; the stable release line starts at `v1.0.0`.
- Affected release range: `>= 1.0.0-RC1, < 1.47.0`.
- Patched release: `v1.47.0` (https://github.com/open-telemetry/opentelemetry-go/pull/9024), which validates and normalizes W3C property metadata in place during `Parse` and materializes `Property` structs lazily only when `Member.Properties()` is explicitly called.
- Small parser measurements were run on `v1.0.0-RC1`, `v1.0.0`, `v1.46.0`, and `v1.47.0-rc.1`; this is not a claim to have dynamically tested every intervening release. The v1.46.0 and v1.47.0-rc.1 parser source is identical to the inspected main commit `901e812ec023f45f791cd4d49cfbbef353ae21ae`.
Early releases have a 4,096-byte per-member limit. They reproduce the same mechanism with a 4,095-byte member containing 2,046 properties; the 8,191-byte single-member input is rejected there. The 8 KB example and its numerical allocation result must not be projected onto every historical version.
## Root cause and input bounds
For the valid dense input, each short property becomes a Go `Property`, and the slice grows as parsing proceeds. The parser subsequently serializes the member and copies its properties into the internal representation. A two-byte wire fragment can therefore produce substantially more than two bytes of allocation work. Temporary parser objects and internal retained objects must not be added together and described as permanently retained memory.
In the currently measured parser, the raw 8,192-byte limit and 64-member limit still apply. The number of accepted properties is consequently bounded by input length even though there is no separate property-count guard. **Eager representation and copying are the defect described here; the absence of an arbitrary count cap is not, by itself, the defect.**
The primary input is constructed as `"k=v" + strings.Repeat(";a", 4094)` (8,191 bytes); the equal-size value-only control is `"k=" + strings.Repeat("v", 8189)`. Call `baggage.Parse` once for each measured result. To verify the property count separately, inspect `bag.Members()[0].Properties()` outside the measured interval; this accessor itself allocates. The primary example remains the valid 8,191-byte, 4,094-property input already supplied in this private report. Empty-property input discussed in the maintainer review is malformed and is supplementary parser-hardening evidence, not the standards-compliant primary example or the basis of the severity score.
## HTTP reachability and authentication ordering
The Go global propagator is initially a no-op. Installing the library alone does not expose this path. Baggage must be enabled explicitly or by applicable auto-configuration; standardized auto-configuration defaults do not establish an individual application's configuration.
An ordinary HTTP composition can place `otelhttp.NewHandler` outside the authentication handler. With `propagation.Baggage{}` enabled and the request not excluded by a filter, the checked `otelhttp` implementation calls `h.propagators.Extract(r.Context(), propagation.HeaderCarrier(r.Header))` before `next.ServeHTTP`. Authentication inside `next` therefore runs after extraction, including for a request that is ultimately rejected with 401/403. Reversing the composition so authentication rejects before entering `otelhttp` prevents this unauthenticated extraction path. This is a source-level ordering check of a normal integration, not a claim about all services or an executed HTTP benchmark.
Source checked: [otelhttp handler at ce138eb092f223e4e41e0420c58fc34910bc2b56, extraction at line 98 and downstream handler at line 185](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/ce138eb092f223e4e41e0420c58fc34910bc2b56/instrumentation/net/http/otelhttp/handler.go#L98). A filter that bypasses instrumentation takes a separate path and is outside this stated composition.
Remote reachability requires all of the following: Baggage extraction is enabled; attacker-controlled input reaches it; the transport and proxy accept the relevant header size; and extraction runs before authentication or on a public route. Material service impact further depends on request rate, concurrency, request lifetime, GC behavior, and resource limits. Authentication is a mitigation only if it precedes extraction. A path that requires a properly authenticated triggering client must also be evaluated under the project's authenticated-client DoS exclusion.