llamaCVEVulnerability Intelligence
/
Go Toolchain cmd/go

CVE-2026-97037

Go Toolchain cmd/go arbitrary code execution in CGO linker flags

An attacker can run arbitrary code by supplying a malicious package that uses cgo when it is linked.

Specific setups onlyParche disponiblecode injection
Descargar PNG JSON
CVSS 3.1
8.8
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Fuente: CISA-ADP
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones1.26.11 · 1.27.4
Exposición8 dDesde la divulgación, 10 nov 2026, 10:13 p. m.
Detección7 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Remediación
Monitoreo
Detectada +2
Verificada
11 nov 26
16 nov 26
17 nov 26
19 nov 26
11 nov 26
13 nov 26
15 nov 26
17 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-97037 divulgada · CVSS 8.8 (CISA-ADP)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 10 nov 2026

The Go toolchain's cmd/go tool is affected by a flaw in how it handles cgo linker flags, which can let a malicious package that uses cgo run arbitrary code when it is linked. Because the bug lies in how linker flags are passed to the host linker, the exact way an attacker reaches it depends on the build path, and no CVSS vector or advisory impact is provided to narrow that down further.

Affects the Go toolchain's cmd/go before 1.26.11, and 1.27.0 before 1.27.4, when cgo builds use #cgo LDFLAGS with GNU ld.bfd. Fixed in 1.26.11 and 1.27.4.

¿Qué significa?Some flags that cmd/go passes through #cgo LDFLAGS, such as split -Wl, options and Darwin or symbol linker flags, can make GNU ld.bfd treat their arguments as linker scripts. A malicious package that uses cgo could then cause arbitrary code execution at link time.
Descripción original del registro (Go)

Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script files to the host linker via "#cgo LDFLAGS". Split "-Wl," flags that consume a following argument (such as "-Wl,-rpath", "-Wl,--just-symbols", and "-Wl,-undefined") previously accepted a bare second argument without a "-Wl," prefix, which the compiler driver passes directly to the linker as a positional input file. Additionally, when using GNU ld.bfd, flags such as "-framework", "-Wl,-framework", "-Wl,-undefined", "-Wl,--just-symbols", "-Wl,-R", "-Wl,-subsystem", and (on non-Darwin platforms) "-Wl,-sectcreate" could cause ld.bfd to interpret their arguments as linker scripts if they named a regular file on disk. The go command now requires a "-Wl," prefix on the second token of split "-Wl," flags (except "-Wl,-R"), verifies that these flags do not reference linker script files, and disallows bare "-Wl,--warn-backrefs-exclude".

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
The build uses cgo with #cgo LDFLAGS“Building a malicious package that uses cgo could cause arbitrary code execution at link time”
02
The linker is GNU ld.bfd for the affected flags to treat arguments as linker scripts“when using GNU ld.bfd, flags such as”
03
The -Wl,-sectcreate flag case applies only on non-Darwin platforms“(on non-Darwin platforms)”
04
Affected Go toolchain cmd/go versions are before go1.26.11, and from go1.27.0-0 before go1.27.4“before go1.26.11, from go1.27.0-0 before go1.27.4”
¿Quién debe revisar?Teams building Go code with cgo (#cgo LDFLAGS) on Go toolchains before go1.26.11, or go1.27.x before go1.27.4, including anyone building untrusted packages
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CISA-ADP
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
cmd/go · toolchain< 1.26.11
cmd/go · toolchain≥ 1.27.0-0 < 1.27.4
1.26.11
1.27.0-0
1.27.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
cmd/go
Corregida 1.26.11, 1.27.4 — —
Versiones corregidas1.26.111.27.4
Explotación

Arsenal público

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

Referencias
Otrahttps://go.dev/cl/862150
Otrahttps://go.dev/issue/82573
Otrahttps://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
Otrahttps://pkg.go.dev/vuln/GO-2026-6854

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