llamaCVEVulnerability Intelligence
/
Go cmd/cgo

CVE-2026-97042

Go toolchain file access via argument injection in external linker

A malicious package can make the build reference arbitrary files on disk through crafted library names.

Specific setups onlyParche disponibleargument 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 +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-97042 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

Go's compiler and linker tools (cmd/cgo, cmd/compile, and cmd/link) can pass unsafe library arguments to the external linker when building a malicious package that uses "//go:cgo_import_dynamic" or links a crafted PE object on Windows. This can let an attacker reference arbitrary files on disk through crafted library names containing path traversal or special characters.

¿Qué significa?Go's build tools can pass unsafe library arguments to the external linker when a package uses the cgo_import_dynamic directive, or when linking against a crafted PE object on Windows. A crafted DLL name can make the linker reference arbitrary files on disk.
Descripción original del registro (Go)

Building a malicious package that uses "//go:cgo_import_dynamic" or links against a crafted PE object on Windows could pass unsafe library arguments to the external linker. The compiler only checked the first character of the library name in "//go:cgo_import_dynamic" directives and skipped validation in cgo-generated files. In addition, on Windows, "cmd/cgo" and "cmd/link" did not validate imported DLL names extracted from PE object files before emitting "-l<name>" flags for the external linker, allowing a crafted DLL name containing ".." path traversal or special characters to reference arbitrary files on disk. The compiler now validates every character of the library name in "//go:cgo_import_dynamic" directives (including in cgo-generated files on Windows) and rejects ".." path traversal, and "cmd/cgo" and "cmd/link" reject PE imported DLL names containing path separators, "..", ":", or leading "-" or "@".

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Building a malicious package that uses the cgo_import_dynamic directive“Building a malicious package that uses”
02
Linking against a crafted PE object on Windows“links against a crafted PE object on Windows”
03
Go toolchain before go1.26.11, or 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 packages with cmd/cgo, cmd/compile or cmd/link on Go toolchains before go1.26.11, or from go1.27.0-0 before go1.27.4; the PE DLL case is Windows only.
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/cgo · cmd/compile · cmd/link · toolchain< 1.26.11
cmd/cgo · cmd/compile · 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/cgo
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/862155
Otrahttps://go.dev/issue/82568
Otrahttps://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
Otrahttps://pkg.go.dev/vuln/GO-2026-6849

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