Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain MitM or endpoint control
-
DeliveryIntercept HTTP sampling request
-
ExploitReturn oversized response body
-
ExecutionExhaust .NET heap via ReadAsStringAsync
-
PersistTrigger OutOfMemoryException
-
ImpactProcess 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Network vector applies since the endpoint can be remote; AC:H reflects mandatory MitM or endpoint-control prerequisite; availability is the sole impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-25271
GHSA-28xm-prxc-5866
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB