Untrusted Search Path Affecting amazon-cloudwatch-agent package, versions <0:1.300066.2-2.amzn2023


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-AMAZONCLOUDWATCHAGENT-16887040
  • published27 May 2026
  • disclosed2 Feb 2026

Introduced: 2 Feb 2026

CVE-2026-24051  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 amazon-cloudwatch-agent to version 0:1.300066.2-2.amzn2023 or higher.
This issue was patched in ALAS2023-2026-1747.

NVD Description

Note: Versions mentioned in the description apply only to the upstream amazon-cloudwatch-agent package and not the amazon-cloudwatch-agent package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

OpenTelemetry-Go is the Go implementation of OpenTelemetry. The OpenTelemetry Go SDK in version v1.20.0-1.39.0 is vulnerable to Path Hijacking (Untrusted Search Paths) on macOS/Darwin systems. The resource detection code in sdk/resource/host_id.go executes the ioreg system command using a search path. An attacker with the ability to locally modify the PATH environment variable can achieve Arbitrary Code Execution (ACE) within the context of the application. A fix was released with v1.40.0.