CVE-2026-97040Go toolchain cmd/go
Inyección de flags del enlazador mediante archivos .syso en Go cmd/go
Crítica 9.8 Sin autenticación
Seguir: esta CVE · Go toolchain · Go toolchain cmd/go Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 11 nov 2026
- Actualizada
- 16 nov 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-94
- SSVC (CISA)
- Explotación: ninguna · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
La cadena de herramientas de Go (cmd/go y cmd/link) no valida correctamente los archivos ".syso" en paquetes, permitiendo que un atacante inyecte flags arbitrarios del enlazador mediante directivas cgo no autenticadas. Un archivo ".syso" malformado que comience con un encabezado "go object" puede eludir las validaciones de seguridad y pasar metadatos cgo maliciosos al enlazador externo sin verificación.
Ver el texto original de NVD (en inglés)
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.
Qué hacer
Hay parche · versiones corregidas: 1.26.11, 1.27.4
Actualiza la cadena de herramientas de Go a la versión 1.26.11 o 1.27.4 o posterior para aplicar las validaciones corregidas de archivos .syso.
- Aplica la actualización de seguridad del fabricante para cmd/go.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Go | toolchain |
< 1.26.11 |
1.26.11 |
go get toolchain@v1.26.11 |
| Go | toolchain |
≥ 1.27.0-0 < 1.27.4 |
1.27.4 |
go get toolchain@v1.27.4 |
Según OSV / GitHub Advisories (GO-2026-6851). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- Go toolchain · cmd/go
- Go toolchain · cmd/link
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Boletines oficiales
- Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update · Red Hat · RHSA-2026:102592 · 25 nov 2026 Media
- Red Hat Security Advisory: golang security, bug fix, and enhancement update · Red Hat · RHSA-2026:102586 · 25 nov 2026 Media
- Red Hat Security Advisory: golang security, bug fix, and enhancement update · Red Hat · RHSA-2026:102587 · 25 nov 2026 Media
- Security update for go1.26 · SUSE · SUSE-SU-2026:24892-1 · 19 nov 2026 Crítica
- Security update for go1.26 · SUSE · openSUSE-SU-2026:22386-1 · 19 nov 2026 Crítica
- Security update for go1.26 · SUSE · SUSE-SU-2026:24920-1 · 19 nov 2026 Crítica
Además: Red Hat (+3), SUSE (+11)
Avisos de fabricantes, CERT y distribuciones que nombran esta CVE. Títulos sin modificar.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.