7.0high
OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking
- Severity
- 7.0high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.18% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9h8m-3fm2-qjrqGO-2026-4394
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| open-telemetry opentelemetry-go | >= 1.21.0, < 1.40.0 | CVE List |
| go.opentelemetry.io/otel/sdk (Go) | from 1.21.0 before 1.40.0 | GitHub Advisory Database, Go Vulnerability Database |
| opentelemetry opentelemetry | from 1.21.0 before 1.40.0 | NVD |
All scores
| GitHub_M | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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/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.
Patches
This has been patched in d45961b, which was released with v1.40.0.
References
Go Vulnerability Database
OpenTelemetry Go SDK Vulnerable to Arbitrary Code Execution via PATH Hijacking in go.opentelemetry.io/otel/sdk
NVD (es)
OpenTelemetry-Go es la implementación de Go de OpenTelemetry. El SDK de Go de OpenTelemetry en la versión v1.20.0-1.39.0 es vulnerable a Secuestro de Ruta (Rutas de Búsqueda No Confiables) en sistemas macOS/Darwin. El código de detección de recursos en sdk/resource/host_id.go ejecuta el comando de sistema ioreg utilizando una ruta de búsqueda. Un atacante con la capacidad de modificar localmente la variable de entorno PATH puede lograr Ejecución de Código Arbitrario (ACE) dentro del contexto de la aplicación. Una corrección fue lanzada con la v1.40.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-24051 changed 2026-02-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9h8m-3fm2-qjrq changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4394 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-24051 changed 2026-10-19 | Public domain |