{"id":"CVE-2026-24051","aliases":["CVE-2026-24051","GHSA-9h8m-3fm2-qjrq","GO-2026-4394"],"related":[],"kind":"vulnerability","state":"published","title":"OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"en","text":"OpenTelemetry Go SDK Vulnerable to Arbitrary Code Execution via PATH Hijacking in go.opentelemetry.io/otel/sdk","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-02-02T19:49:10.038Z","modified":"2026-11-23T20:30:07.090Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-426"],"affected":[{"ranges":[{"version":">= 1.21.0, < 1.40.0","status":"affected"}],"vendor":"open-telemetry","product":"opentelemetry-go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.21.0","status":"affected","fixed":"1.40.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/sdk","purl":"pkg:golang/go.opentelemetry.io/otel/sdk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.21.0","status":"affected","fixed":"1.40.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/otel/sdk","purl":"pkg:golang/go.opentelemetry.io/otel/sdk","source":"go"},{"ranges":[{"status":"affected","introduced":"1.21.0","fixed":"1.40.0"}],"vendor":"opentelemetry","product":"opentelemetry","cpe":"cpe:2.3:a:opentelemetry:opentelemetry:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-9h8m-3fm2-qjrq","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-go/commit/d45961bcda453fcbdb6469c22d6e88a1f9970a53","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24051","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/open-telemetry/opentelemetry-go","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2026-4394","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-02-03T14:53:50.389Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-24051","url":"https://www.cve.org/CVERecord?id=CVE-2026-24051","licence":"CVE Terms of Use","modified":"2026-02-03T14:54:41.668Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9h8m-3fm2-qjrq","url":"https://github.com/advisories/GHSA-9h8m-3fm2-qjrq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:34.801Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4394","url":"https://pkg.go.dev/vuln/GO-2026-4394","licence":"CC-BY-4.0","modified":"2026-11-23T20:30:07.090Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-24051","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24051","licence":"Public domain","modified":"2026-10-19T11:53:38.957Z"}],"updatedAt":"2026-11-25T22:59:13.375Z","epss":{"score":0.00176,"percentile":0.07445,"date":"2026-12-01T12:00:22.000Z"}}