VulnerabilityCVE-2026-97035GO-2026-6856WID-SEC-W-2026-4370:CVE-2026-97035
Unexpected code execution and arbitrary file write via Clang -gen-* and GCC -gnat* flags in cgo in cmd/go
Not on CISA KEV
Summary
When using Clang or GCC, building a malicious package that uses cgo could cause unexpected code execution at build time or write files to arbitrary directories via "-gen-*" or "-gnat*" flags in "#cgo" directives. The "-g*" wildcard in the compiler and linker flag allowlists previously matched
See the full record, free
- Every source, score and reference in one place
- Timeline and related records
- Watch an entry and get an alert when it changes
Sources and credits
- BSI CERT-Bund Source: BSI CERT-Bund
- CISA Vulnrichment Source: CISA Vulnrichment
- CVE List Source: CVE Program (cve.org)