Twelve Go Toolchain Vulnerabilities Patched in openSUSE Leap 16 Follow Up Update
An earlier advisory from our team covered openSUSE-SU-2026:22407-1, the security update for the go1.26 package set. This advisory is the follow-up for the parallel Go branch: openSUSE-SU-2026:22405-1 rolls the same class of fixes into go1.27, which is shipped separately and is not covered by the go1.26 patch. The update is rated important by the vendor, resolves twelve vulnerabilities and thirteen bug fixes, and applies to openSUSE Leap 16.0. The CVEs are CVE-2026-97033 through CVE-2026-97043 plus CVE-2026-97054, each assigned a SUSE CVSS v3.1 score of 7.4 with the vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H. The fixed packages are go1.27-1.27.4-160000.1.1, go1.27-doc-1.27.4-160000.1.1 and go1.27-race-1.27.4-160000.1.1, delivered through patch openSUSE-Leap-16.0-2130=1, which also moves the toolchain to upstream release 1.27.4. Sites that patched only the go1.26 package after the first advisory still have an unpatched go1.27 toolchain if both are installed.
Eleven of the twelve issues sit in the build toolchain rather than in compiled applications, and they share a common theme: cgo-related flags and directives that are not sanitised tightly enough, allowing a hostile Go module to influence what the compiler and host linker actually execute. CVE-2026-97033 covers unexpected code execution through –sysroot, -target, -isysroot, -Wl,-syslibroot and -x cgo flags, while CVE-2026-97034 describes arbitrary command execution via GCC spec files placed in cgo linker search directories. CVE-2026-97035 adds code execution and arbitrary file write through Clang -gen-* and GCC -gnat* flags, CVE-2026-97036 covers code execution during a build on darwin through "-l to_library", and CVE-2026-97037 covers linker script injection using split -Wl, flags and Darwin or symbol linker flags. A second cluster abuses object files and directives: CVE-2026-97038 and CVE-2026-97040 involve crafted .syso files, including ones disguised as Go object files, CVE-2026-97039 is a flag sanitisation bypass through "#cgo pkg-config:" directives, CVE-2026-97041 and CVE-2026-97042 are host linker flag injection through //go:cgo_* directives and through cgo_import_dynamic and PE DLL names, and CVE-2026-97043 is code execution via escaped quotes in //go:cgo_ldflag. The twelfth issue, CVE-2026-97054, is different in nature: a race condition in MaxBytesReader handling that can crash an HTTP/1 server in net/http. The vendor has not published proof-of-concept detail or exploitation telemetry for any of them.
The practical exposure here is the build pipeline, not the running production host. A developer workstation, CI runner or container image builder that compiles a third-party Go module with cgo enabled is executing attacker-influenced compiler and linker invocations with the privileges of the build user, which makes these flaws a supply chain problem rather than a conventional remote service bug. That matters disproportionately for build infrastructure, because CI agents commonly hold registry credentials, signing keys and cloud tokens, and compromise at build time can be carried forward into artefacts that downstream consumers trust. CVE-2026-97054 is the one issue with a direct production footprint, since any Go-based HTTP/1 service built against the affected toolchain and using MaxBytesReader can be forced into an availability failure. The high attack complexity in the shared CVSS vector reflects that an attacker must first get hostile source or object files into the build, which is a real but not trivial precondition. Current exploitation likelihood is low on the available evidence: FIRST EPSS places the thirty-day exploitation probability at 0.7% for CVE-2026-97033, 0.8% for CVE-2026-97034 and CVE-2026-97040, 0.7% for CVE-2026-97035, CVE-2026-97036, CVE-2026-97037, CVE-2026-97038 and CVE-2026-97043, 0.6% for CVE-2026-97041 and CVE-2026-97042, and 0.5% for CVE-2026-97039 and CVE-2026-97054.
Attack Surface
Supply Chain (Third-party vendors), Server OS, Web Application
Tactics
Execution, Initial Access, Impact, Defense Evasion
Techniques
- T1195.001 – Supply Chain Compromise: Compromise Software Dependencies and Development Tools
- T1059 – Command and Scripting Interpreter
- T1499.004 – Endpoint Denial of Service: Application or System Exploitation
- T1574 – Hijack Execution Flow
SuperPRO's Threat Countermeasures Procedures
- Apply patch openSUSE-Leap-16.0-2130=1 on openSUSE Leap 16.0 with 'zypper in -t patch openSUSE-Leap-16.0-2130=1', bringing go1.27, go1.27-doc and go1.27-race to version 1.27.4-160000.1.1.
- Treat this as separate from the earlier go1.26 advisory openSUSE-SU-2026:22407-1 – run 'rpm -qa | grep ^go1' on every Leap 16.0 host and confirm the go1.27 package is at 1.27.4-160000.1.1 even if go1.26 was already updated.
- Inventory CI runners, container build images and developer workstations that embed the openSUSE go1.27 toolchain, and rebuild base images that pin a go1.27 version earlier than 1.27.4 before the next pipeline run.
- Disable cgo on build jobs that do not need it by setting CGO_ENABLED=0 in pipeline environment variables, which removes the attack path used by CVE-2026-97033 to CVE-2026-97043.
- Audit vendored and third-party Go modules for .syso object files and for '#cgo pkg-config:', //go:cgo_ldflag and //go:cgo_import_dynamic directives, since these are the exact inputs abused by CVE-2026-97038, CVE-2026-97039, CVE-2026-97040 and CVE-2026-97043.
- Rebuild and redeploy Go HTTP services that call http.MaxBytesReader using the 1.27.4 toolchain to clear the net/http header race in CVE-2026-97054, and alert on unexplained HTTP/1 listener restarts in the interim.
- Restrict build agent privileges and scope registry, signing and cloud credentials to the minimum required, so build-time code execution on a compromised runner cannot be used to sign or publish artefacts.