{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-97040","published":"2026-11-11T05:19:58.283000Z","last_modified":"2026-11-16T18:17:34.137000Z","status":"Awaiting Analysis","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","primary":false},"auth":false,"cwes":["CWE-94"],"cpes":[],"cpes_truncated":false,"vendors":["go-toolchain"],"products":["go-toolchain/cmd-go"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GO-2026-6851","ecosystem":"Go","name":"toolchain","purl":"pkg:golang/toolchain","ranges":[{"introduced":"0","fixed":"1.26.11"},{"introduced":"1.27.0-0","fixed":"1.27.4"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2026-97040/","html_en":"/en/cve/CVE-2026-97040/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-97040","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-97040"},"untrusted":{"vendor_name":"Go toolchain","product_name":"cmd/go","desc_en":"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.","affected":[{"untrusted_vendor":"Go toolchain","untrusted_product":"cmd/go","versions":[]},{"untrusted_vendor":"Go toolchain","untrusted_product":"cmd/link","versions":[]}],"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"d47026e3f291b757e5d0efb4970e563c","generated":"2026-11-26T23:34:40.943219Z","es":{"untrusted_title":"Inyección de flags del enlazador mediante archivos .syso en Go cmd/go","untrusted_summary":"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."},"en":{"untrusted_title":"Linker flag injection via crafted .syso files in Go cmd/go","untrusted_summary":"The Go toolchain (cmd/go and cmd/link) fails to properly validate \".syso\" files in packages, allowing an attacker to inject arbitrary linker flags through unauthenticated cgo directives. A crafted \".syso\" file beginning with a \"go object\" header can bypass security validations and pass malicious cgo metadata to the external linker without verification."},"remediation":{"status":"fix","fixed_versions":["1.26.11","1.27.4"],"untrusted_action_es":"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.","untrusted_action_en":"Update the Go toolchain to version 1.26.11, 1.27.4 or later to apply the corrected .syso file validations.","vendor_url":"https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM"},"reviewed":false},"references":[{"url":"https://go.dev/cl/862153","tags":[]},{"url":"https://go.dev/issue/82570","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-6851","tags":[]}]},"bulletins":[{"source":"redhat","id":"RHSA-2026:102592","url":"https://access.redhat.com/errata/RHSA-2026:102592","published":"2026-11-25T10:07:18+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update"}},{"source":"redhat","id":"RHSA-2026:102586","url":"https://access.redhat.com/errata/RHSA-2026:102586","published":"2026-11-25T10:07:17+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: golang security, bug fix, and enhancement update"}},{"source":"redhat","id":"RHSA-2026:102587","url":"https://access.redhat.com/errata/RHSA-2026:102587","published":"2026-11-25T10:07:17+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: golang security, bug fix, and enhancement update"}},{"source":"suse","id":"SUSE-SU-2026:24892-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-202624892-1/","published":"2026-11-19T11:59:56+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for go1.26"}},{"source":"suse","id":"openSUSE-SU-2026:22386-1","url":"https://www.suse.com/support/update/","published":"2026-11-19T11:59:56+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for go1.26"}},{"source":"suse","id":"SUSE-SU-2026:24920-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-202624920-1/","published":"2026-11-19T11:59:07+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for go1.26"}}]}