llamaCVEVulnerability Intelligence
/
Go Toolchain cmd/go

CVE-2026-97040

Go Toolchain cmd/go code injection in cmd/link via disguised .syso files

An attacker can inject unchecked linker flags into a build by hiding a crafted file as an object file.

UnclearParche disponiblecode injection
Descargar PNG JSON
CVSS 3.1
9.8
Crítica
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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 SSVCAtender
Priorizar en el próximo ciclo de cambios
Sin explotación conocida, automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada +2
Verificada
11 nov 26
16 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-97040 divulgada · CVSS 9.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 (the `cmd/go` and `cmd/link` tools) can be made to pass unvalidated linker flags when building a package that contains a crafted ".syso" file disguised as a Go object file. This lets an attacker embed cgo directives such as "cgo_ldflag" that are forwarded to the external linker without checks.

¿Qué significa?A crafted .syso file that begins with a Go object header is parsed as a Go compiler object, which lets it inject arbitrary linker flags into the external linker. This bypasses cgo flag validation through untrusted cgo metadata directives such as cgo_ldflag or cgo_dynamic_linker.
Descripción original del registro (Go)

Building a package containing a crafted ".syso" file could bypass cgo flag validation and inject arbitrary linker flags when linking. When loading ".syso" entries from a package archive, the linker only checked for recognized host object headers (ELF, Mach-O, PE, and XCOFF) before falling through to Go object parsing. A ".syso" file beginning with a "go object" header was parsed as a Go compiler object, allowing untrusted cgo metadata directives (such as "cgo_ldflag" or "cgo_dynamic_linker") embedded in the ".syso" file to be passed to the external linker without validation. Additionally, ".syso" filenames longer than 16 bytes lost their ".syso" extension when truncated in archive headers, and unrecognized ".syso" formats forced external linking in pure-Go builds. The linker now rejects ".syso" files that are not recognized host object formats, and "cmd/go" and "cmd/pack" preserve the ".syso" suffix when truncating long archive member names.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Building a package that contains a crafted .syso file“Building a package containing a crafted”
02
The .syso file begins with a Go object header, so it is parsed as a Go compiler object“A ".syso" file beginning with a "go object" header was parsed as a Go compiler object”
03
Affected Go toolchain versions: cmd/go and cmd/link 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?Anyone building Go code with the Go toolchain (cmd/go, cmd/link) before go1.26.11, or from go1.27.0-0 before go1.27.4
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:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
cmd/go · cmd/link · toolchain< 1.26.11
cmd/go · cmd/link · 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/862153
Otrahttps://go.dev/issue/82570
Otrahttps://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
Otrahttps://pkg.go.dev/vuln/GO-2026-6851

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