Skip to main content

OpenTelemetry.Sampler.AWS CVE-2026-41173

| EUVDEUVD-2026-25271 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-04-23 GitHub_M GHSA-28xm-prxc-5866
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Gain MitM or endpoint control
  2. Delivery
    Intercept HTTP sampling request
  3. Exploit
    Return oversized response body
  4. Execution
    Exhaust .NET heap via ReadAsStringAsync
  5. Persist
    Trigger OutOfMemoryException
  6. Impact
    Process terminates (DoS)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires one of two conditions: (1) the attacker controls the value passed to AWSXRayRemoteSamplerBuilder.SetEndpoint, which implies write access to the application's configuration at deployment time (administrative or infrastructure-level access), or (2) the attacker holds a network MitM position on the path to the configured sampling endpoint. For the default configuration (http://localhost:2000), a MitM attack requires local code execution or a compromised process on the same host, substantially raising the bar. In containerized environments using service meshes or shared network namespaces, the MitM requirement may be achievable via lateral movement. For OpenTelemetry.Resources.AWS, the metadata endpoints (http://169.254.169.254 for EC2, link-local ECS metadata, https://kubernetes.default.svc for EKS) are only reachable from within the instance or pod, so exploitation similarly requires prior foothold in the execution environment. Exploitation is not automatable at scale per SSVC, and no authentication bypass is involved - the attacker manipulates the response rather than the request.

Impact

The CVSS 3.1 score of 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H) reflects high availability impact but elevated attack complexity, which accurately captures the prerequisite of either endpoint control or a network MitM position. EPSS at 0.01% (2nd percentile) independently corroborates the low exploitation likelihood. SSVC classifies exploitation as none and the attack as not automatable, further lowering operational urgency. The default endpoint of http://localhost:2000 substantially limits MitM feasibility in standard deployments, as intercepting loopback traffic requires local process access or a compromised sidecar. Risk increases meaningfully in container orchestration environments (Kubernetes, ECS) where the metadata endpoints are link-local or service-mesh addresses and where lateral movement is more plausible. There is no confidentiality or integrity impact - the sole outcome is process destabilization or termination. No conflict between signals is present; all sources align on a medium-severity, low-probability DoS.

Exploit ScenarioDerived

An attacker with a MitM position on the network path between the .NET application and the X-Ray daemon (for example, through ARP spoofing on an internal segment or by compromising a sidecar proxy in a Kubernetes pod) intercepts the periodic HTTP GET request the sampler makes to http://localhost:2000/GetSamplingRules. The attacker responds with a multi-gigabyte body; the unpatched ReadAsStringAsync() call buffers the entire payload on the .NET heap, triggering garbage-collection stalls and ultimately an OutOfMemoryException that terminates the instrumented process. No public proof-of-concept exploit code has been identified at time of analysis.

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

Unbounded HTTP response body allocation in OpenTelemetry.Sampler.AWS allows an attacker who controls the configured X-Ray sampling endpoint or who holds a network MitM position to exhaust heap memory and crash the consuming .NET process via OutOfMemoryException. Both NuGet packages OpenTelemetry.Sampler.AWS (versions below 0.1.0-alpha.8) and OpenTelemetry.Resources.AWS (versions below 1.15.1) are affected, with AWSXRaySamplerClient.DoRequestAsync calling ReadAsStringAsync() with no response size cap. No public exploit has been identified and EPSS sits at 0.01% (2nd percentile), consistent with SSVC exploitation status of none and CISA KEV absence, making this a low-urgency but patchable DoS risk.

RemediationAI

Upgrade OpenTelemetry.Sampler.AWS to version 0.1.0-alpha.8 or later and OpenTelemetry.Resources.AWS to version 1.15.1 or later; both fix versions are confirmed by GHSA-28xm-prxc-5866 and the merged PR diffs at https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/4100 and https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/4122. If an immediate upgrade is not possible, configure the sampling endpoint to use HTTPS with a trusted certificate to eliminate plaintext MitM risk; note this does not protect against a compromised or attacker-controlled endpoint. Additionally, restrict network access to the X-Ray daemon port (default 2000) via host firewall rules so only the local process may reach it, reducing the MitM surface. In containerized environments, enforce network policy to isolate metadata service access. These workarounds reduce but do not eliminate risk - patching is the only complete remediation.

Affected VersionsENISA

opentelemetry-dotnet-contrib < 0.1.0-alpha.8

Affected Packages

nuget opentelemetry.resources.aws fix: 1.15.1
nuget opentelemetry.sampler.aws fix: 0.1.0-alpha.8
euvd opentelemetry_dotnet_contrib fix: 0.1.0-alpha.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 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 is rooted in CWE-770 (Allocation of Resources Without Limits or Throttling). The affected code path in AWSXRaySamplerClient.DoRequestAsync uses HttpClient.SendAsync followed by ReadAsStringAsync(), which buffers the entire HTTP response body into a single heap-allocated string with no size guard. The sampling endpoint is configurable via AWSXRayRemoteSamplerBuilder.SetEndpoint and defaults to the unencrypted plaintext address http://localhost:2000 - an X-Ray daemon listening port. In the OpenTelemetry.Resources.AWS package, the same pattern affects AWSEC2Detector, AWSECSDetector, and AWSEKSDetector, which query AWS instance metadata service endpoints (http://169.254.169.254, ECS_CONTAINER_METADATA_URI, https://kubernetes.default.svc). The affected CPE is cpe:2.3:a:open-telemetry:opentelemetry-dotnet-contrib:*:*:*:*:*:*:*:*. The fix, confirmed in PR #4100, introduces a LimitedStream wrapper class that enforces a 1 MB read cap per request by clamping reads against a totalBytesRead counter, and switches to HttpCompletionOption.ResponseHeadersRead to stream rather than buffer the response.

Know when Opentelemetry Dotnet Contrib 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

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.9 MEDIUM

Network vector applies since the endpoint can be remote; AC:H reflects mandatory MitM or endpoint-control prerequisite; availability is the sole impact.

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:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

3
Patch released
Apr 24, 2026 - 14:50 nvd
Patch available
Patch available
Apr 23, 2026 - 20:31 EUVD
CVE Published
Apr 23, 2026 - 18:22 nvd
MEDIUM 5.9

DescriptionCVE.org

The AWS X-Ray Remote Sampler package provides a sampler which can get sampling configurations from AWS X-Ray. Prior to 0.1.0-alpha.8, OpenTelemetry.Sampler.AWS reads unbounded HTTP response bodies from a configured AWS X-Ray remote sampling endpoint into memory. AWSXRaySamplerClient.DoRequestAsync called HttpClient.SendAsync followed by ReadAsStringAsync(), which materializes the entire HTTP response body into a single in-memory string with no size limit. The sampling endpoint is configurable via AWSXRayRemoteSamplerBuilder.SetEndpoint (default: http://localhost:2000). An attacker who controls the configured endpoint, or who can intercept traffic to it (MitM), can return an arbitrarily large response body. This causes unbounded heap allocation in the consuming process, leading to high transient memory pressure, garbage-collection stalls, or an OutOfMemoryException that terminates the process. This vulnerability is fixed in 0.1.0-alpha.8.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
Low
niche .NET observability library for AWS-specific tracing
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
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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