CVE-2026-24051: Go.opentelemetry.io/otel/sdk OpenTelemetry Go SDK Vulnerable To Vulnerability
HIGHCVE-2026-24051 is a HIGH (CVSS 7.0) opentelemetry go sdk vulnerable to vulnerability (CWE-426: Untrusted Search Path) affecting Go.opentelemetry.io/otel/sdk libraries in the Go ecosystem. The issue involves opentelemetry go sdk vulnerable to arbitrary code execution via path hijacking. Remediation is available by upgrading affected packages to version 1.40.0.
CVE-2026-24051 at a Glance
Security Impact
CVSS: 7.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-24051
To remediate this vulnerability, upgrade all affected Go.opentelemetry.io/otel/sdk dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade go.opentelemetry.io/otel/sdk to 1.40.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for go.opentelemetry.io/otel/sdk
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-24051, inspect your project dependencies for Go.opentelemetry.io/otel/sdk:
inspect dependencies for go.opentelemetry.io/otel/sdk
Analyze the terminal output to locate any version of Go.opentelemetry.io/otel/sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.40.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-426: Untrusted Search Path, where 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. In Go.opentelemetry.io/otel/sdk, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-24051 Affected Go.opentelemetry.io/otel/sdk Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
go.opentelemetry.io/otel/sdk
|
Go |
≥ 1.21.0
< 1.40.0
|
1.40.0
|
References
Frequently Asked Questions
What is CVE-2026-24051?
Which Go.opentelemetry.io/otel/sdk versions are affected?
What version fixes CVE-2026-24051?
Is go.opentelemetry.io/otel/sdk affected?
What is the CVSS score of CVE-2026-24051?
What CWE is associated with CVE-2026-24051?
How can I check Go dependencies for CVE-2026-24051?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9h8m-3fm2-qjrq",
"modified" : "2026-02-27T21:39:46Z",
"published" : "2026-02-02T20:07:46Z",
"aliases" : [ "CVE-2026-24051" ],
"summary" : "OpenTelemetry Go SDK Vulnerable to Arbitrary Code Execution via PATH Hijacking",
"details" : "### Impact\nThe 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.\n\n### Patches\nThis has been patched in [d45961b](https://github.com/open-telemetry/opentelemetry-go/commit/d45961bcda453fcbdb6469c22d6e88a1f9970a53), which was released with `v1.40.0`.\n\n### References\n- [CWE-426: Untrusted Search Path](https://cwe.mitre.org/data/definitions/426.html)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "go.opentelemetry.io/otel/sdk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.21.0"
}, {
"fixed" : "1.40.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-9h8m-3fm2-qjrq"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-24051"
}, {
"type" : "WEB",
"url" : "https://github.com/open-telemetry/opentelemetry-go/commit/d45961bcda453fcbdb6469c22d6e88a1f9970a53"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/open-telemetry/opentelemetry-go"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2026-4394"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-426" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-02T20:07:46Z",
"nvd_published_at" : "2026-02-02T23:16:07Z"
}
}