{"id":"CVE-2026-39883","aliases":["GHSA-hfvc-g4fc-pqhx","GO-2026-5426"],"url":"https://o3.security/vulnerability/CVE-2026-39883","summary":"OpenTelemetry-Go has an incomplete fix for CVE-2026-24051: BSD kenv command not using absolute path enables PATH hijacking","details":"## Summary\n\nThe fix for GHSA-9h8m-3fm2-qjrq (CVE-2026-24051) changed the Darwin `ioreg` command to use an absolute path but left the BSD `kenv` command using a bare name, allowing the same PATH hijacking attack on BSD and Solaris platforms.\n\n## Root Cause\n\n`sdk/resource/host_id.go` line 42:\n\n    if result, err := r.execCommand(\"kenv\", \"-q\", \"smbios.system.uuid\"); err == nil {\n\nCompare with the fixed Darwin path at line 58:\n\n    result, err := r.execCommand(\"/usr/sbin/ioreg\", \"-rd1\", \"-c\", \"IOPlatformExpertDevice\")\n\nThe `execCommand` helper at `sdk/resource/host_id_exec.go` uses `exec.Command(name, arg...)` which searches `$PATH` when the command name contains no path separator.\n\nAffected platforms (per build tag in `host_id_bsd.go:4`): DragonFly BSD, FreeBSD, NetBSD, OpenBSD, Solaris.\n\nThe `kenv` path is reached when `/etc/hostid` does not exist (line 38-40), which is common on FreeBSD systems.\n\n## Attack\n\n1. Attacker has local access to a system running a Go application that imports `go.opentelemetry.io/otel/sdk`\n2. Attacker places a malicious `kenv` binary earlier in `$PATH`\n3. Application initializes OpenTelemetry resource detection at startup\n4. `hostIDReaderBSD.read()` calls `exec.Command(\"kenv\", ...)` which resolves to the malicious binary\n5. Arbitrary code executes in the context of the application\n\nSame attack vector and impact as CVE-2026-24051.\n\n## Suggested Fix\n\nUse the absolute path:\n\n    if result, err := r.execCommand(\"/bin/kenv\", \"-q\", \"smbios.system.uuid\"); err == nil {\n\nOn FreeBSD, `kenv` is located at `/bin/kenv`.","published":"2026-04-08T20:26:41.731Z","modified":"2026-11-10T02:30:57.148299621Z","cvss":null,"epss":{"score":0.00258,"percentile":0.17704,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"go.opentelemetry.io/otel/sdk","fixedVersion":"1.43.0"}],"fix":null,"references":[{"type":"WEB","url":"http://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.43.0"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39883.json"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:26254"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:26257"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:37387"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:54274"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:54286"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:63140"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-39883"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39883.json"},{"type":"ADVISORY","url":"https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-hfvc-g4fc-pqhx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39883"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2456718"},{"type":"PACKAGE","url":"https://github.com/open-telemetry/opentelemetry-go"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-10T02:30:57.148299621Z"}}