CVE-2026-40894: OpenTelemetry dotnet: Excessive memory allocation when parsing OpenTelemetry propagation headers

Published Apr 23, 2026
·
Updated

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.

Other sources

OpenTelemetry dotnet is a dotnet telemetry framework. In OpenTelemetry.Api 0.5.0-beta.2 to 1.15.2 and OpenTelemetry.Extensions.Propagators 1.3.1 to 1.15.2, 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. This vulnerability is fixed in 1.15.3.

MITRE

Affected Software

7 affected componentsFixes available
nuget/OpenTelemetry.Api>=0.5.0-beta.2<=1.15.2
nuget/OpenTelemetry.Extensions.Propagators>=1.3.1<=1.15.2
nuget/OpenTelemetry.Extensions.Propagators>=1.3.1<1.15.3
1.15.3
nuget/OpenTelemetry.Api>=0.5.0-beta.2<1.15.3
1.15.3
OpenTelemetry OpenTelemetry .NET>=0.5.0<1.15.3
OpenTelemetry Opentelemetry.api .net>=0.5.0<1.15.3
OpenTelemetry OpenTelemetry.Extensions.Propagators>1.3.0<1.15.3

Event History

Apr 23, 2026
CVE Published
via MITRE·06:03 PM
Data Sourced
via MITRE·06:03 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:43 PM
Data Sourced
via GitHub·09:43 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40894?

CVE-2026-40894 has been classified with a high severity rating due to its potential for excessive memory allocation.

2

What software versions are affected by CVE-2026-40894?

CVE-2026-40894 affects OpenTelemetry.Api versions from 0.5.0-beta.2 to 1.15.2 and OpenTelemetry.Extensions.Propagators versions from 1.3.1 to 1.15.2.

3

How do I fix CVE-2026-40894?

To remediate CVE-2026-40894, upgrade to the latest versions of OpenTelemetry.Api and OpenTelemetry.Extensions.Propagators where the vulnerability is patched.

4

What type of vulnerability is CVE-2026-40894?

CVE-2026-40894 is a memory management vulnerability caused by excessive memory allocation during OpenTelemetry propagation header parsing.

5

Who is impacted by CVE-2026-40894?

Users and applications utilizing affected versions of OpenTelemetry APIs are at risk of encountering excessive memory usage due to CVE-2026-40894.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203