CVE-2026-97042Go toolchain cmd/cgo
Alta 8.8 Sin autenticación
Seguir: esta CVE · Go toolchain · Go toolchain cmd/cgo Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 68
- CVSS 3.1
- 8.8
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 11 nov 2026
- Actualizada
- 16 nov 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-88
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Qué pasa
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 "@".
Qué hacer
- Aplica la actualización de seguridad del fabricante para cmd/cgo.
- 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-6849). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- Go toolchain · cmd/cgo
- Go toolchain · cmd/compile
- 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.