CVE-2026-24051
Unknown Unknown - Not Provided
Path Hijacking in OpenTelemetry-Go Enables Local Code Execution

Publication date: 2026-02-02

Last updated on: 2026-02-27

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-02
Last Modified
2026-02-27
Generated
2026-05-07
AI Q&A
2026-02-03
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linuxfoundation opentelemetry-go From 1.21.0 (inc) to 1.40.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-426 The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability affects the OpenTelemetry Go SDK versions v1.20.0 to v1.39.0 on macOS/Darwin systems. The issue is a Path Hijacking (Untrusted Search Paths) vulnerability in the resource detection code, which executes the ioreg system command using a search path. If an attacker can locally modify the PATH environment variable, they can cause the application to execute arbitrary code within its context.


How can this vulnerability impact me? :

An attacker with local access who can modify the PATH environment variable can exploit this vulnerability to execute arbitrary code within the context of the affected application. This can lead to unauthorized actions, data compromise, or system control depending on the application's privileges.


What immediate steps should I take to mitigate this vulnerability?

Upgrade the OpenTelemetry Go SDK to version v1.40.0 or later, as this version contains the fix for the Path Hijacking vulnerability. Additionally, restrict or control the ability of local users to modify the PATH environment variable to prevent exploitation.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart