CVE-2026-24051 OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking
Local attackers can execute arbitrary code by hijacking the PATH environment variable during resource detection in OpenTelemetry-Go on macOS.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-24051?
CVE-2026-24051 is a high-severity command injection vulnerability in open-telemetry opentelemetry-go, published on 2 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-426
Which versions are affected by CVE-2026-24051?
3 open source packages ship an affected version, including go.opentelemetry.io/otel/sdk. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
go.opentelemetry.io/otel/sdk Go | From 1.21.0 | 1.40.0 |
go.opentelemetry.io/otel/sdk Go | From 1.21.0 | 1.40.0 |
go.opentelemetry.io/otel/sdk Go | From 1.21.0 | 1.40.0 |
Linux distribution packages (1)
copacetic openSUSE:Tumbleweed | All versions | 0.14.0-1.1 |
Products include Opentelemetry Opentelemetry.
How do I fix CVE-2026-24051?
Upgrade go.opentelemetry.io/otel/sdk to 1.40.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-24051 being exploited?
There is no known exploitation of CVE-2026-24051 in the wild and no public exploit code.
Other vulnerabilities in open-telemetry opentelemetry-go
- CVE-2026-29181 OpenTelemetry-Go multi-value `baggage` header extraction causes excessive allocations (remote dos amplification)
- CVE-2023-47108 DoS vulnerability in otelgrpc (uncontrolled resource consumption) due to unbound cardinality metrics
- CVE-2023-45142 OpenTelemetry-Go Contrib has DoS vulnerability in otelhttp due to unbound cardinality metrics
- CVE-2023-43810 opentelemetry-instrumentation Denial of Service vulnerability due to unbound cardinality metrics
- CVE-2026-39883 opentelemetry-go: BSD kenv command not using absolute path enables PATH hijacking
Sources
Also known as AZL-76443, AZL-76449, AZL-81200, CLEANSTART-2026-AS81931, CLEANSTART-2026-GG34182, CLEANSTART-2026-KC38093 and 566 more.