CVE-2026-97035 Affecting go-toolset package, versions <0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776


Severity

Recommended
medium

Based on Oracle Linux security rating.

Threat Intelligence

EPSS
0.71% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ORACLE8-GOTOOLSET-23013656
  • published27 Nov 2026
  • disclosed11 Nov 2026

Introduced: 11 Nov 2026

NewCVE-2026-97035  (opens in a new tab)

How to fix?

Upgrade Oracle:8 go-toolset to version 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 or higher.
This issue was patched in ELSA-2026-102592.

NVD Description

Note: Versions mentioned in the description apply only to the upstream go-toolset package and not the go-toolset package as distributed by Oracle. See How to fix? for Oracle:8 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1