Description
OpenTelemetry Rust is the Rust OpenTelemetry implementation. In 0.32.0 and earlier, BaggagePropagator::extract_with_context in opentelemetry_sdk did not enforce W3C Baggage size limits before parsing an inbound baggage header, so a large attacker-controlled header could cause unnecessary CPU work and short-lived heap allocations while parsing entries later discarded by the SDK's baggage storage limits. Services that accept untrusted inbound propagation headers may experience increased per-request resource usage when processing oversized baggage headers. This issue is fixed in version 0.32.1.
Published: 2026-07-17
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

OpenTelemetry Rust’s SDK allows inbound W3C Baggage headers larger than its internal limits to be parsed before size checks, an example of an unbounded memory allocation weakness (CWE‑770). This flaw existed in version 0.32.0 and earlier, where BaggagePropagator::extract_with_context did not enforce size limits before parsing an inbound baggage header, so a large attacker‑controlled header could cause unnecessary CPU work and short‑lived heap allocations. The SDK later discards entries that exceed its baggage limits, meaning all that extra work is wasted, potentially leading to increased per‑request CPU usage and transient memory pressure.

Affected Systems

The vulnerability affects the OpenTelemetry Rust library, specifically the opentelemetry_sdk crate used by services that import OpenTelemetry for tracing. Any instance of opentelemetry-rust earlier than version 0.32.1 is susceptible. The issue was addressed by upgrading to version 0.32.1 or later, which introduces proper size checks before parsing the header.

Risk and Exploitability

The CVSS base score of 5.3 indicates moderate severity, and the EPSS score of less than 1 % suggests that exploitation is unlikely at present. The vulnerability is not listed in CISA’s KEV catalog. Attackers can exploit it by sending a request with an oversized baggage header to any HTTP‑based service that forwards the header to the OpenTelemetry SDK. No special privileges are required; the vector is network‑based inbound traffic. If successful, an attacker may cause detectable CPU load spikes or temporary memory pressure, making the service more susceptible to resource exhaustion or Denial‑of‑Service attacks.

Generated by OpenCVE AI on August 1, 2026 at 08:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the opentelemetry-rust dependency to version 0.32.1 or later to apply the vendor‑issued fix.
  • If an immediate upgrade is not feasible, implement a header size check in the incoming request handling logic to reject baggage headers exceeding a safe threshold, thereby preventing the SDK from parsing overly large payloads.
  • Apply general input validation and rate‑limiting on requests that contain baggage propagation headers to mitigate the impact of any remaining attack surface.

Generated by OpenCVE AI on August 1, 2026 at 08:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-w9wp-h8wv-79jx opentelemetry_sdk has unbounded memory allocation in W3C Baggage propagation
History

Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Opentelemetry
Opentelemetry opentelemetry-rust
Vendors & Products Opentelemetry
Opentelemetry opentelemetry-rust

Mon, 20 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 20:15:00 +0000

Type Values Removed Values Added
Description OpenTelemetry Rust is the Rust OpenTelemetry implementation. In 0.32.0 and earlier, BaggagePropagator::extract_with_context in opentelemetry_sdk did not enforce W3C Baggage size limits before parsing an inbound baggage header, so a large attacker-controlled header could cause unnecessary CPU work and short-lived heap allocations while parsing entries later discarded by the SDK's baggage storage limits. Services that accept untrusted inbound propagation headers may experience increased per-request resource usage when processing oversized baggage headers. This issue is fixed in version 0.32.1.
Title OpenTelemetry Rust: Unbounded memory allocation in W3C Baggage propagation
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}


Subscriptions

Opentelemetry Opentelemetry-rust
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T15:18:22.372Z

Reserved: 2026-05-21T15:33:08.293Z

Link: CVE-2026-48504

cve-icon Vulnrichment

Updated: 2026-07-20T15:18:17.436Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T08:15:03Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling