ALPINE-CVE-2026-97034: Alpine/go vulnerability

Published Nov 11, 2026
·
Updated

When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files ("specs" or ".spec"). When linking with "-fopenmp", "-fopenacc", or "-fsanitize=" in "#cgo LDFLAGS", GCC's built-in link spec evaluates "%:include(libgomp.spec)" or "%:include(libsanitizer.spec)" and searches for spec files in "-L" and sysroot directories (including subdirectories and multilib sibling directories such as "../lib64"), as well as the working directory when "-fopenmp" or "-fopenacc" is used or when "-fsanitize=" is combined with "-static" or "-static-lib". The go command now rejects "-L", "-isysroot", and "-Wl,-syslibroot" directories (and the working and package directories when applicable) that contain GCC spec files, and disallows "@" and "-" prefixes in "-fsanitize=" compiler flag values.

Affected Software

1 affected componentFixes available
alpine/go<1.26.11-r0
1.26.11-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.26.11-r0

Event History

Nov 11, 2026
CVE Published
via OSV·05:19 AM
Data Sourced
via OSV·05:19 AM
DescriptionAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Build environments using GCC to compile a malicious Go package that uses cgo are exposed when the package supplies affected #cgo LDFLAGS. The risk is during linking, not necessarily when running the resulting program.

2

What does an attacker need to exploit it?

An attacker needs to cause a victim to build a malicious cgo package with GCC and link flags using -fopenmp, -fopenacc, or -fsanitize=. They also need an untrusted GCC spec file to be found through a relevant -L or sysroot path, or through the working directory in the specified cases.

3

Are default build configurations affected?

The described behavior requires specific #cgo LDFLAGS that trigger GCC's libgomp or libsanitizer spec inclusion. The provided data does not indicate that ordinary cgo builds without -fopenmp, -fopenacc, or -fsanitize= are affected.

4

What can be done if updating is not immediately possible?

Avoid building untrusted cgo packages that use the affected linker flags, and do not allow untrusted directories in -L, -isysroot, or -Wl,-syslibroot arguments. Ensure relevant search paths, including applicable working and package directories, do not contain specs or *.spec files.

5

How can I identify a potentially affected build?

Review #cgo LDFLAGS for -fopenmp, -fopenacc, or -fsanitize=, especially with -static or -static-lib* for sanitizer builds. Check directories referenced by -L, -isysroot, and -Wl,-syslibroot, plus applicable working and package directories, for GCC spec files named specs or ending in .spec.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203