CVE-2026-40894 — Vulnerability in OpenTelemetry.Ext…ropagators
OpenTelemetry dotnet: Excessive memory allocation when parsing OpenTelemetry propagation headers
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.
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.
BaggagePropagator.Extract<T>()- this change was introduced by #1048.BaggagePropagator.Inject<T>()- this change was introduced by #1048.B3Propagator.Extract<T>()- this change was introduced by #533.B3Propagator.Extract<T>()- this change was introduced by #3244.JaegerPropagator.Extract<T>()- this change was introduced by #3309.
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.
dotnet add package OpenTelemetry.Extensions.Propagators --version 1.15.3
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).
| Package | Fixed 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.
- CWE-789
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/open-telemetry/opentelemetry-dotnet/security/advisories/GHSA-g94r-2vxg-569jWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40894ADVISORY
- https://github.com/open-telemetry/opentelemetry-dotnet/pull/1048WEB
- https://github.com/open-telemetry/opentelemetry-dotnet/pull/3244WEB
- https://github.com/open-telemetry/opentelemetry-dotnet/pull/3309WEB
- https://github.com/open-telemetry/opentelemetry-dotnet/pull/3533WEB
- https://github.com/open-telemetry/opentelemetry-dotnet/pull/533WEB
- https://github.com/open-telemetry/opentelemetry-dotnet/pull/7061WEB
- https://github.com/open-telemetry/opentelemetry-dotnetPACKAGE
- https://github.com/open-telemetry/opentelemetry-dotnet/releases/tag/core-1.15.3WEB
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
Exploitation requires specific conditions, or the impact is limited.
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
Related CVEs
- CVE-2026-114154MEDIUM
Microsoft Security Advisory CVE-2026-114154 - ASP.NET Core Denial of Service Vulnerability
- GHSA-6856-87hx-p5x7MEDIUM
Microsoft Security Advisory CVE-2026-105544 - .NET Elevation of Privilege Vulnerability
- CVE-2025-27513MEDIUM
OpenTelemetry .NET has Denial of Service (DoS) Vulnerability in API Package