ZeroDay Brief
CVE-2026-97033

Building a malicious package that uses cgo could cause arbitrary code execution at build time through several compiler and linker flags permitted in "#cgo" directives.

CVSS
8.8High
Chance of exploitation (EPSS)
0.69%
Published
Nov 11, 2026
In the news
Not yet
More from this vendor

What to do

A serious command injection flaw in Go Toolchain Cmd Go that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Fixed in: 1.26.11, 1.27.4

Affected versions
Go Toolchain Cmd Go
Before 1.26.11; 1.27.0-0 to before 1.27.4

Description

Building a malicious package that uses cgo could cause arbitrary code execution at build time through several compiler and linker flags permitted in "#cgo" directives. Specifically, "--sysroot" in GCC and Clang relocates compiler subprograms, spec files, and CRT startup objects to an attacker-controlled directory; "-target" in Clang falls back to executing target helper tools from the current working directory when not found in PATH; "-isysroot" and "-Wl,-syslibroot" can pass a regular file on disk to GNU ld.bfd, which interprets it as a positional linker script; and "-x" permitted specifying arbitrary compiler input languages beyond those supported by cgo. "--sysroot" and "-target" are now disallowed in "#cgo" flags, "-isysroot" and "-Wl,-syslibroot" are verified not to point to regular files, and "-x" is restricted to the C, C++, Objective-C, and assembler languages supported by cgo.

CWE-77

Affected products

Get alerts for these →

Timeline 21

Latest change: Tenable Cloud Security plugin 499225: Alpine: multiple go packages: security update to 1.27.4-r0 (Dec 3, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Wed, Nov 11, 2026

  1. CVECVE-2026-97033 published (CVSS 8.8)CVE Program · 05:19 UTC

References 4

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”