CVE-2026-24051
HIGH 7.0CVSS 3.1OpenTelemetry Go SDK Vulnerable to Arbitrary Code Execution via PATH Hijacking
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.
- Published
- 2 Feb 2026
- Last modified
- 23 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-426
- Also known as
- GHSA-9h8m-3fm2-qjrqGO-2026-4394
- Sources
- NVDJSONOSV GHSA-9h8m-3fm2-qjrqJSONOSV GO-2026-4394JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | opentelemetry | opentelemetrycpe:2.3:a:opentelemetry:opentelemetry:*:*:*:*:*:go:*:* |
>= 1.21.0, < 1.40.0 | 1.40.0 |
| OSV | Go | go.opentelemetry.io/otel/sdk | >= 1.21.0, < 1.40.0 | 1.40.0 |
References
- https://github.com/open-telemetry/opentelemetry-go/commit/d45961bcda453fcbdb6469c22d6e88a1f9970a53 · Patch, WEB, FIX
- https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-9h8m-3fm2-qjrq · Patch, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-24051 · ADVISORY
- https://github.com/open-telemetry/opentelemetry-go · PACKAGE
- https://pkg.go.dev/vuln/GO-2026-4394 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 2 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 2 Feb 2026)