Skip to main content

OpenTelemetry .NET CVE-2026-40891

| EUVDEUVD-2026-25268 MEDIUM
Memory Allocation with Excessive Size Value (CWE-789)
2026-04-23 GitHub_M GHSA-mr8r-92fq-pj8p
5.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control or compromise OTLP/gRPC collector endpoint
  2. Delivery
    Trigger retryable gRPC status (ResourceExhausted/Unavailable)
  3. Exploit
    Return crafted grpc-status-details-bin trailer with oversized varint length field
  4. Execution
    GrpcStatusDeserializer allocates new byte[~2GB] without bounds check
  5. Persist
    .NET process exhausts managed heap
  6. Impact
    DoS/crash of instrumented application

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
Exploitation Conditions

The vulnerability requires the instrumented .NET application to use OpenTelemetry.Exporter.OpenTelemetryProtocol version 1.13.1 to 1.15.2 and to export telemetry via the OTLP/gRPC transport specifically - the OTLP/HTTP transport is unaffected. The vulnerable code path activates only when the gRPC server returns a retryable status code (ResourceExhausted or Unavailable), so the attacker must cause or simulate one of those states. The attacker must additionally control the configured gRPC collector endpoint or occupy a MitM position between the exporter and collector; this is satisfied by a compromised internal collector, a misconfigured endpoint pointing to an external host, or a network-level interception position. Exploitation is limited to the telemetry egress channel; no authentication bypass or application-layer access is needed from the attacker's perspective (PR:N in CVSS reflects that the attacker is responding, not authenticating). Deployments enforcing mutual TLS between exporter and collector significantly narrow the viable MitM window but do not protect against a legitimately compromised collector.

Impact

The NVD CVSS 5.3 (Medium) score with AV:A/AC:H reflects a constrained attack scenario requiring the adversary to control the OTLP/gRPC collector endpoint or successfully MitM the telemetry channel. EPSS at 0.01% (3rd percentile) is consistent with no observed mass exploitation, and SSVC independently confirms Exploitation: none and Automatable: no, since the attacker must first be positioned in the telemetry path before triggering the vulnerable code. Real-world priority is therefore low for organizations routing telemetry to trusted internal collectors over authenticated channels. However, the AV:A designation may under-represent risk in common cloud deployments where the collector is a remotely hosted service reachable over the internet - in such topologies the effective attack vector is closer to AV:N. No POC has been publicly identified at time of analysis. The SSVC Technical Impact of partial (only availability, no confidentiality or integrity) bounds blast radius to process availability of the instrumented application, not data exfiltration.

Exploit ScenarioDerived

An attacker who has compromised the OTLP/gRPC collector endpoint (or who can intercept telemetry traffic in a deployment lacking mutual TLS) waits for the instrumented .NET application to encounter a retryable gRPC error. The attacker crafts a response with a grpc-status-details-bin trailer containing a protobuf varint field length of several gigabytes; the unpatched GrpcStatusDeserializer then issues new byte[~2GB] against the managed heap, triggering an OutOfMemoryException that crashes the instrumented service. No public POC exists, but the vulnerable code path is fully documented in the PR diffs referenced in the GHSA advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Memory exhaustion via unbounded protobuf allocation in OpenTelemetry.Exporter.OpenTelemetryProtocol (NuGet) affects versions 1.13.1 through 1.15.2 when exporting telemetry over OTLP/gRPC. An attacker controlling the gRPC collector endpoint or intercepting telemetry traffic can return a malformed grpc-status-details-bin trailer on a retryable response, causing the instrumented .NET process to attempt an arbitrarily large byte array allocation and exhaust available memory. No public exploit exists and SSVC confirms no active exploitation; a vendor patch is available in 1.15.3.

RemediationAI

Upgrade OpenTelemetry.Exporter.OpenTelemetryProtocol to version 1.15.3 or later, which validates decoded protobuf length-delimited field sizes against remaining payload size before allocation (fix implemented in PR #7064). The full advisory is at https://github.com/open-telemetry/opentelemetry-dotnet/security/advisories/GHSA-mr8r-92fq-pj8p. The GHSA advisory confirms no workarounds are known. As a compensating control while upgrading, enforce mutual TLS between the instrumented application and its OTLP/gRPC collector - this closes the MitM attack surface but does not protect against a compromised collector endpoint itself. Additionally, restrict network egress for telemetry traffic to allowlisted, internally managed collector IPs via firewall rules, reducing exposure to attacker-controlled endpoints. Neither compensating control eliminates the vulnerability; patching to 1.15.3 remains the only complete remediation.

Affected VersionsENISA

opentelemetry-dotnet 1.13.1, < 1.15.3
OpenTelemetry.Exporter.OpenTelemetryProtocol 1.13.1, < 1.15.3

Affected Packages

nuget opentelemetry.exporter.opentelemetryprotocol fix: 1.15.3
euvd opentelemetry_dotnet_1_13_1 fix: 1.15.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in nuget, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in GrpcStatusDeserializer.cs within the OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package (CPE: cpe:2.3:a:open-telemetry:opentelemetry.exporter.opentelemetryprotocol). The retry path introduced in PR #5980 reads the grpc-status-details-bin HTTP/2 trailer from retryable gRPC responses (status codes ResourceExhausted and Unavailable) to extract backoff delay information. The DecodeBytes method decoded a protobuf varint field length and directly invoked new byte[length] without validating that the declared length was consistent with remaining bytes in the payload - a textbook CWE-789 (Uncontrolled Memory Allocation) pattern. A crafted protobuf message can encode a varint of up to approximately 2 GB as a single length-delimited field, causing that allocation from the .NET managed heap in a single call and triggering an OutOfMemoryException that crashes the instrumented process.

Know when Opentelemetry Dotnet gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.3 MEDIUM
AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.9 MEDIUM

AV:N because the collector can be any remote endpoint the app is configured to export to, not necessarily adjacent; AC:H because controlling the response requires compromising the collector or performing MitM.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
Patch released
Apr 29, 2026 - 14:15 nvd
Patch available
Patch available
Apr 23, 2026 - 20:31 EUVD
CVE Published
Apr 23, 2026 - 17:54 nvd
MEDIUM 5.3

DescriptionNVD

OpenTelemetry dotnet is a dotnet telemetry framework. From 1.13.1 to before 1.15.2, When exporting telemetry over gRPC using the OpenTelemetry Protocol (OTLP), the exporter may parse a server-provided grpc-status-details-bin trailer during retry handling. Prior to the fix, a malformed trailer could encode an extremely large length-delimited protobuf field which was used directly for allocation, allowing excessive memory allocation and potential denial of service (DoS). This vulnerability is fixed in 1.15.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Prevalence
Medium
widely used .NET observability SDK in cloud-native deployments
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy