SecurityContext

CVE-2026-97033: Go cgo - Remote Code Execution

  • Cve: CVE-2026-97033
  • Name: Go cgo - Remote Code Execution
  • 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.
  • Impact: Attackers can execute arbitrary code during the build process, potentially compromising the build environment and resulting binaries.
  • Remediation: Update to the latest version of Go that disallows "--sysroot" and "-target", verifies "-isysroot" and "-Wl,-syslibroot" do not point to regular files, and restricts "-x" to supported languages.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: securitycontext
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00686
  • Epss percentile: 0.5359
  • Assignee: [email protected]
  • Published at: 2026-11-11T05:19:57Z
  • Age in days: 12
  • Modified at: 2026-11-17T05:18:38Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-97033
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-77Improper Neutralization of Special Elements used in a Command

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://go.dev/cl/862146
https://go.dev/issue/82577
https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
https://pkg.go.dev/vuln/GO-2026-6858

Products

ProductAffectedPlatform boundSourcesUrl
golang:go>= 1.27.0-0, < 1.27.4; < 1.26.11nocna_alias/v1/products/golang/go

Projects

RepositoryLink kindsIndexedUrl
golang/gofixyes/v1/repositories/golang/go

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 1834312
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports