CVE-2026-24051 OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking

High 7.0 Published Updated

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.

PackageAffectedFixed in
go.opentelemetry.io/otel/sdk GoFrom 1.21.01.40.0
go.opentelemetry.io/otel/sdk GoFrom 1.21.01.40.0
go.opentelemetry.io/otel/sdk GoFrom 1.21.01.40.0
Linux distribution packages (1)
copacetic openSUSE:TumbleweedAll versions0.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.

Sources

Also known as AZL-76443, AZL-76449, AZL-81200, CLEANSTART-2026-AS81931, CLEANSTART-2026-GG34182, CLEANSTART-2026-KC38093 and 566 more.

Is CVE-2026-24051 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free