OpenTelemetry-Go: Eager W3C baggage-property materialization causes bounded memory-allocation amplification
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in go.opentelemetry.io/otel/baggage 1.47.0 and go.opentelemetry.io/otel/propagation 1.47.0.
OpenTelemetry-Go is the Go implementation of OpenTelemetry. From version 1.0.0-RC1 until version 1.47.0, baggage.Parse and propagation.Baggage.Extract eagerly materialize every W3C baggage property through parseMember, grow property slices, serialize members, and copy properties into internal/baggage.Item. A valid densely populated baggage header can therefore cause allocation traffic and retained memory disproportionate to its bounded input size. Remote impact requires baggage extraction to be enabled, attacker-controlled input to reach it, and extraction to run before authentication or on a public route; the evidence establishes increased allocation and garbage-collection pressure but not reliable process termination. This issue is fixed in version 1.47.0.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| open-telemetry | >=1.0.0-RC1 <1.47.0 | ||
| go: go.opentelemetry.io/otel/baggage | >=1.0.0-RC1 <1.47.0 | 1.47.0 | |
| go: go.opentelemetry.io/otel/propagation | >=1.0.0-RC1 <1.47.0 | 1.47.0 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket