llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Go · go.opentelemetry.io/otel/sdk

GHSA-HFVC-G4FC-PQHX

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

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -5 d de la divulgación
Exposición225 dDesde la divulgación, 8 abr 2026, 2:22 p. m.
Detección222 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche v1.43.0
Monitoreo
Detectada
3 abr 26
8 abr 26
10 sept 26
17 nov 26
20 nov 26
3 abr 26
31 may 26
28 jul 26
23 sept 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche v1.43.0 go.opentelemetry.io/otel/sdk · -5 d desde divulgación
Divulgación Publicada GHSA-HFVC-G4FC-PQHX divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

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/host_id_exec.go` uses `exec.Command(name, arg...)` which searches `$PATH` when the command name contains no path separator.

Affected platforms (per build tag in `host_id_bsd.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`.

Versiones

Rangos afectados

Afectada Corregida Última
go.opentelemetry.io/otel/sdk≥ 1.15.0 < 1.43.0
1.15.0
1.43.0
v1.47.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gogo.opentelemetry.io/otel/sdk
Corregida v1.43.0 -5 d v1.47.0 no afectada
Versiones corregidas1.43.0v1.43.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

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

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.