Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-39883

opentelemetry-go: BSD kenv command not using absolute path enables PATH hijacking
Back to all
CVE

CVE-2026-39883

opentelemetry-go: BSD kenv command not using absolute path enables PATH hijacking

Summary

The 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.

Root Cause

sdk/resource/host_id.go line 42:

    if result, err := r.execCommand("kenv", "-q", "smbios.system.uuid"); err == nil {

Compare with the fixed Darwin path at line 58:

    result, err := r.execCommand("/usr/sbin/ioreg", "-rd1", "-c", "IOPlatformExpertDevice")

The execCommand helper at sdk/resource/hostidexec.go uses exec.Command(name, arg...) which searches $PATH when the command name contains no path separator.

Affected platforms (per build tag in hostidbsd.go:4): DragonFly BSD, FreeBSD, NetBSD, OpenBSD, Solaris.

The kenv path is reached when /etc/hostid does not exist (line 38-40), which is common on FreeBSD systems.

Attack

  1. Attacker has local access to a system running a Go application that imports go.opentelemetry.io/otel/sdk
  2. Attacker places a malicious kenv binary earlier in $PATH
  3. Application initializes OpenTelemetry resource detection at startup
  4. hostIDReaderBSD.read() calls exec.Command("kenv", ...) which resolves to the malicious binary
  5. Arbitrary code executes in the context of the application

Same attack vector and impact as CVE-2026-24051.

Suggested Fix

Use the absolute path:

    if result, err := r.execCommand("/bin/kenv", "-q", "smbios.system.uuid"); err == nil {

On FreeBSD, kenv is located at /bin/kenv.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.3
-
4.0
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-hfvc-g4fc-pqhx, https://nvd.nist.gov/vuln/detail/CVE-2026-39883, https://github.com/open-telemetry/opentelemetry-go, http://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.43.0

Severity

7

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7
EPSS Probability
0.00009%
EPSS Percentile
0.01042%
Introduced Version
1.15.0,0
Fix Available
1.43.0,9.2.7-r4,9.2.7-r5,2.0.1-r10,9.1.10-r7,3.1.13-r4,3.3.7-r0,3.6.19-r6,3.7.13-r2,3.6.19-r7,3.7.13-r5,4.0.5-r5,1.1.1-r9,1.0.0-r3,1.50.3-r8,1.51.2-r8,1.53.0-r8,1.56.0-r6,1.58.0-r1,0.47.0-r8,10.32.3-r1,2.18.0-r6,2.18.0-r5,8.1.3-r2,9.0.3-r2,1.32.1-r7,8.19.16-r0,1.26.10-r5,1.27.3-r5,0.30.0-r3,3.30.7-r2,3.31.4-r6,1.20.2-r0,1.19.4-r5,0.16.0-r4,0.2.245-r0,2.6.43-r5,1.32.7-r2,1.34.8-r2,35.0.5-r8,8.17.10-r12,9.0.8-r14,9.1.10-r8,8.17.10-r18,9.0.8-r15,9.1.10-r10,1.8.12-r17,1.9.11-r15,1.9.11-r12,1.1.0-r4,1.15.2-r11,1.31.5-r11,1.32.7-r4,1.33.4-r6,1.34.3-r7,1.35.0-r4,1.31.5-r13,1.34.3-r5,1.61.1-r0,2.1.17-r0,1.21.5-r12,1.10.0-r0,1.14.5-r20,1.15.14-r0,1.16.14-r0,1.17.5-r0,1.14.5-r19,7.76.3-r12,7.77.3-r4,7.76.3-r10,1.25.0-r2,4.1.0-r2,0.33.0-r3,5.1.3-r1,29.5.2-r0,1.30.53-r2,1.31.43-r1,1.32.36-r1,1.33.26-r1,1.34.17-r1,1.35.8-r1,8.17.10-r14,8.19.14-r2,9.0.8-r12,9.2.8-r1,9.3.3-r1,8.17.10-r13,9.0.8-r13,0.0.0_git20260419-r1,3.5.29-r2,0.44.0-r0,0.12.2-r10,1.8.3-r3,1.8.2-r4,1.16.5-r3,1.12.2-r0,1.8.5-r11,1.14.6-r14,1.16.2-r15,1.20.4-r8,1.24.0-r5,18.10.4-r2,18.11.2-r2,18.9.6-r2,18.10.7-r1,18.10.5-r1,18.11.2-r1,18.9.6-r1,18.10.5-r0,2.11.1-r1,18.10.1-r1,18.9.0-r6,18.9.0-r5,5.0.0-r13,2.188.1-r3,11.6.14.01-r4,12.1.10.01-r4,0.53.3-r5,2.12.4-r34,2.12.4-r32,1.26.8-r4,1.27.9-r2,1.26.8-r11,1.27.9-r5,1.65.0-r17,1.2.5-r11,1.35.3.1-r2,1.31.6.1-r19,1.32.13.1-r11,1.33.10.1-r5,1.34.6.1-r2,1.35.3.1-r1,1.4.0-r0,0.50.18-r28,0.50.18-r14,0.30.3-r1,0.30.3-r0,2.17.3-r5,2.18.3-r9,2.17.3-r3,2.18.3-r6,2.19.0-r5,0.14.16-r1,1.20.3-r1,1.21.2-r1,1.21.2-r2,0,1.20.4-r1,1.21.3-r1,1.20.2-r8,1.21.1-r11,1.21.1-r5,1.20.3-r5,1.21.2-r4,1.20.3-r7,1.21.2-r3,3.5.6-r1,1.130.0-r4,0.16.0-r25,1.4.2-r0,6.4.0-r11,10.0.0-r5,2.16.0-r13,4.11.0-r9,4.0.5-r0,0.2.139-r0,0.2.140-r0,2.7.19-r11,2.9.15-r3,1.15.3-r11,1.17.1-r13,1.17.1-r11,3.7.3-r7,1.12.0-r11,1.12.0-r2,3.5.12-r6,3.6.11-r2,0.11.6-r0,0.11.6-r1,0.16.0-r2,2.6.14-r3,0.20260520.234452-r1,2.7.2-r2,1.6.5-r0,2.5.2-r3,0.150.0-r0,1.9.4-r14,2.64.0-r5,26.2.0-r9,26.2.0-r10,1.22.0-r13,0.12.0-r0,2.51.2-r52,3.10.0-r7,0.12.0-r25,0.12.0-r26,0.10.1-r35,0.31.1-r7,0.5.12-r11,0.18.1-r13,1.33.10.2.2-r3,1.35.3.2.3-r2,1.33.10.2.3-r2,5.5.0-r0,4.20-r0,1.6.0-r0,1.7.2-r13,2.4.4-r2,3.50.0-r0,1.5.0-r16,1.0.1-r6,17.7.20-r6,2.8.4-r0,2.9.1-r8,2.8.3-r5,2.9.1-r7,1.6.2-r3,1.13.5-r13,1.14.8-r2,0.5.1-r2,0.41.0-r14,0_git20251229-r7,0_git20251229-r9,2.11.44-r0,1.7.3-r4,0.69.3-r11,0.69.3-r7,0.30.1-r6,0.30.1-r5,1.16.3-r33,1.22.1-r11,25.4.0.0-r12,22.0.4-r10,23.0.3-r11,1.37.7-r0,0.10.8-r34,0.10.8-r32,4.14.0-r0

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading