Skip to main content

CVE-2026-40894 — Vulnerability in OpenTelemetry.Ext…ropagators

MEDIUM

OpenTelemetry dotnet: Excessive memory allocation when parsing OpenTelemetry propagation headers

Published April 23, 2026Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.59%). Schedule for your next planned update.

Does your project use an affected OpenTelemetry.Extensions.Propagators version?

Paste your packages.lock.json to check it for CVE-2026-40894 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my packages.lock.json

Summary

Summary

The implementation details of the baggage, B3 and Jaeger processing code in the OpenTelemetry.Api and OpenTelemetry.Extensions.Propagators NuGet packages can allocate excessive memory when parsing which could create a potential denial of service (DoS) in the consuming application.

Details

Exceeding Limits

BaggagePropagator.Inject<T>() does not enforce the length limit of 8192 characters if the injected baggage contains only one item.

This change was introduced by #1048.

Excessive allocation

The following methods eagerly allocate intermediate arrays before applying size limits.

Impact

Excessively large propagation headers, particularly in degenerate/malformed cases that consist or large numbers of delimiter characters, can allocate excessive amounts of memory for intermediate storage of parsed content relative to the size of the original input.

Mitigation

HTTP servers often set maximum limits on the length of HTTP request headers, such as Internet Information Services (IIS) which sets a default limit of 16KB and nginx which sets a default limit of 8KB.

Workarounds

Possible workarounds include:

  • Configuring appropriate HTTP request header limits.
  • Disabling baggage and/or trace propagation.

Remediation

#7061 refactors the handling of baggage, B3 and Jaeger propagation headers to stop parsing eagerly when limits are exceeded and avoid allocating intermediate arrays.

Advisory Timeline

  • First published April 23, 2026 (217 days ago).
  • Last revised September 10, 2026 — 139 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update OpenTelemetry.Extensions.Propagators to 1.15.3 or later
dotnet add package OpenTelemetry.Extensions.Propagators --version 1.15.3
NuGet
Update OpenTelemetry.Api to 1.15.3 or later
dotnet add package OpenTelemetry.Api --version 1.15.3

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: NuGet (2).

PackageFixed In
OpenTelemetry.Extensions.Propagators NuGet · Affected: 1.10.0, 1.11.0, 1.11.1, 1.11.2 (+17 more)1.15.3
OpenTelemetry.Api NuGet · Affected: 1.0.0-rc2, 1.0.0-rc3, 1.0.0-rc4, 1.0.1 (+34 more)1.15.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Frequently Asked Questions

What is CVE-2026-40894?
OpenTelemetry dotnet: Excessive memory allocation when parsing OpenTelemetry propagation headers. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
How do I check if my project is affected by CVE-2026-40894?
CVE-2026-40894 affects OpenTelemetry.Extensions.Propagators and OpenTelemetry.Api. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40894 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.59%
EPSS percentile: 42.2

This is a below-median EPSS score — only 42.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-g94r-2vxg-569j

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my packages.lock.json