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

Published Feb 2, 2026
·
Updated

Impact 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/hostid.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.

Patches This has been patched in d45961b, which was released with v1.40.0.

References - CWE-426: Untrusted Search Path

Other sources

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/hostid.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.

MITRE

Affected Software

2 affected componentsFixes available
go/go.opentelemetry.io/otel/sdk/resource>=1.21.0<=1.39.0
1.40.0
OpenTelemetry OpenTelemetry Go>=1.21.0<1.40.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/go.opentelemetry.io/otel/sdk/resource to a version that resolves this vulnerability.

    Fixed in 1.40.0
  2. Upgrade

    Upgrade go/go.opentelemetry.io/otel/sdk/resource to a version that resolves this vulnerability.

    Fixed in 1.40.0Patch d45961bcda453fcbdb6469c22d6e88a1f9970a53

Event History

Feb 2, 2026
CVE Published
via MITRE·07:49 PM
Data Sourced
via MITRE·07:49 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·08:07 PM
Data Sourced
via GitHub·08:07 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via NVD·11:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 PM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-24051?

CVE-2026-24051 has a moderate severity level due to the potential for path hijacking that could affect system integrity.

2

How do I fix CVE-2026-24051?

To fix CVE-2026-24051, upgrade the OpenTelemetry Go SDK to version 1.40.0 or later.

3

Which versions of OpenTelemetry Go SDK are affected by CVE-2026-24051?

Versions v1.20.0 to v1.39.0 of the OpenTelemetry Go SDK are affected by CVE-2026-24051.

4

What operating systems are impacted by CVE-2026-24051?

CVE-2026-24051 affects macOS/Darwin systems specifically.

5

What types of attacks can CVE-2026-24051 facilitate?

CVE-2026-24051 can facilitate path hijacking attacks, allowing unauthorized access to system resources through untrusted search paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203