Advisory
UBUNTU-CVE-2026-97035
Also known as: CVE-2026-97035
Summary
The record has no summary.
Details
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 Clang's two-argument "-gen-cdb-fragment-path <dir>" flag and GCC's two-argument "-gnatO <file>" flag, permitting compilation database fragments and sidecar output files to be written to arbitrary directories and desynchronizing flag argument parsing between the go command and the compiler driver so that subsequent arguments could be passed as unvalidated positional inputs to the linker. "-gen-*" and "-gnat*" flags are now disallowed in "#cgo" compiler and linker flags.
Severity
Not rated by the source.
Dates
- Published
- 2026-11-12 00:00 UTC
- Modified
- 2026-11-12 23:49 UTC
Affected packages and fixes
| Package | System | Fix |
|---|---|---|
| golang-1.10 | Debian packages (deb) · Ubuntu 14.04 | No fixed version is listed. |
| golang-1.10 | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| golang-1.6 | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| golang-1.10 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| golang-1.8 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| golang-1.9 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| golang-1.13 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.14 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.18 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.20 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.21 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.22 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.17 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.18 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.20 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.21 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.22 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.24 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.25 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.26 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.21 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.22 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.24 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.25 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.26 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.26 | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| golang-1.27 | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| golang-1.24 | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| golang-1.25 | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| golang-1.26 | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2026-97035
- https://www.cve.org/CVERecord?id=CVE-2026-97035
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ
- https://github.com/golang/go/issues/82575
- https://github.com/golang/go/commit/cbd457366f9912bfbf32bc001d48fa458ff9e3e8
- https://github.com/golang/go/commit/b16449729837b6134cc225e83164df6337d5b5c3
- https://go.dev/cl/862148
- https://go.dev/issue/82575
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- https://pkg.go.dev/vuln/GO-2026-6856
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0