UBUNTU-CVE-2026-97038: Medium severity ubuntu/golang-1.10 vulnerability

Published Nov 12, 2026
·
Updated

Building a malicious package containing ".syso" files or cgo linker inputs could inject arbitrary linker flags or execute arbitrary code at link time. Linker input files—including ".syso" files, direct object or library inputs in "#cgo LDFLAGS", and libraries in "-L" directories—were passed to the external linker without validating their format or checking for embedded linker options. Across platforms, this allowed executing GNU ld implicit linker scripts disguised as libraries or ".syso" files (or loaded via "-l:<filename>" or "-l" containing path separators), injecting unallowlisted linker flags via PE/COFF ".drectve" sections on Windows or Mach-O "LCLINKEROPTION" load commands on Darwin, or invoking LTO plugins via GCC or LLVM LTO intermediate representation sections in ELF, PE/COFF, or Mach-O objects. The go command now verifies that ".syso" files, direct linker inputs, and libraries in "-L" directories are valid binary objects or archives that do not contain unallowlisted ".drectve" directives, "LCLINKEROPTION" load commands, or LTO IR sections, and disallows "-l:<filename>" and ":", "=", or path separators in "-l" flags.

Affected Software

24 affected components
ubuntu/golang-1.10*
ubuntu/golang-1.10*
ubuntu/golang-1.6*
ubuntu/golang-1.13*
ubuntu/golang-1.18*
ubuntu/golang-1.10*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.8*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.22*
ubuntu/golang-1.17*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.13*
ubuntu/golang-1.21*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.26*
ubuntu/golang-1.23*
ubuntu/golang-1.24*

Event History

Nov 12, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Build environments using the listed Ubuntu golang packages are exposed when they link attacker-controlled or otherwise untrusted .syso files, cgo linker inputs, or libraries supplied through -L directories. The impact occurs during the build/link step rather than from merely running an already-built application.

2

What does an attacker need to exploit it?

An attacker needs a way to cause a Go build to consume malicious linker input, such as a .syso file, a direct object or library referenced by #cgo LDFLAGS, or a library found in a supplied -L directory. Malicious inputs can use linker scripts, embedded linker-option directives, or LTO intermediate-representation sections to introduce flags or execute code at link time.

3

Are all platforms affected in the same way?

GNU ld implicit linker scripts can affect builds across platforms. PE/COFF .drectve directives are relevant on Windows, Mach-O LC_LINKER_OPTION commands on Darwin, and LTO intermediate-representation sections can be present in ELF, PE/COFF, or Mach-O objects.

4

What can be done before updating the Go package?

Do not build untrusted source trees or accept untrusted .syso files, cgo linker inputs, or libraries from -L directories. Review #cgo LDFLAGS and reject -l:<filename> forms, -l values containing colons, equals signs, or path separators, and binary inputs containing linker-option or LTO content.

5

How does the corrected behavior prevent exploitation?

The go command validates .syso files, direct linker inputs, and libraries in -L directories as binary objects or archives, and rejects unallowlisted .drectve directives, LC_LINKER_OPTION commands, and LTO IR sections. It also disallows -l:<filename> and -l flags containing :, =, or path separators.

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