CVE-2026-41173

Medium

Description

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.

SeverityMedium
CVSS5.9
Exploit probability—
ProductOpentelemetry.sampler.aws
PublishedApr 23, 2026
First seenApr 23, 2026

How to fix

Update
  • OpenTelemetry.Sampler.AWS0.1.0-alpha.8 or later
  • OpenTelemetry.Resources.AWS1.15.1 or later

Affected products

ProductAffected versionsFixed in
OpenTelemetry.Sampler.AWSNuGetv < 0.1.0-alpha.80.1.0-alpha.8
OpenTelemetry.Resources.AWSNuGetv < 1.15.11.15.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.