CVE-2026-97037
Building a malicious package that uses cgo could cause arbitrary code ...
Overview
Description
Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script files to the host linker via "#cgo LDFLAGS". Split "-Wl," flags that consume a following argument (such as "-Wl,-rpath", "-Wl,--just-symbols", and "-Wl,-undefined") previously accepted a bare second argument without a "-Wl," prefix, which the compiler driver passes directly to the linker as a positional input file. Additionally, when using GNU ld.bfd, flags such as "-framework", "-Wl,-framework", "-Wl,-undefined", "-Wl,--just-symbols", "-Wl,-R", "-Wl,-subsystem", and (on non-Darwin platforms) "-Wl,-sectcreate" could cause ld.bfd to interpret their arguments as linker scripts if they named a regular file on disk. The go command now requires a "-Wl," prefix on the second token of split "-Wl," flags (except "-Wl,-R"), verifies that these flags do not reference linker script files, and disallows bare "-Wl,--warn-backrefs-exclude".
Source: OX vulnerability database
Severity
8.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-94
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 21 fixes
SUSE Linux Enterprise 4 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-26 +2 | 1.26.11-150000.1.39.1 | SUSE-SU-2026:5227-1 |
| 15.4 | go1-27 +2 | 1.27.4-150000.1.18.1 | SUSE-SU-2026:5226-1 |
| 15.5 | go1-26 +2 | 1.26.11-150000.1.39.1 | SUSE-SU-2026:5227-1 |
| 15.5 | go1-27 +2 | 1.27.4-150000.1.18.1 | SUSE-SU-2026:5226-1 |
| 15.6 | go1-26 +2 | 1.26.11-150000.1.39.1 | SUSE-SU-2026:5227-1 |
| 15.6 | go1-27 +2 | 1.27.4-150000.1.18.1 | SUSE-SU-2026:5226-1 |
2 more rows
alpine 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.24 | go | 1.26.11-r0 |
| edge | go | 1.27.4-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +6 | 1.26.11-1.amzn2023.0.1 |
debian 3 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 12 | golang-1-19 | affected |
| 13 | golang-1-24 | affected |
| 14 | golang-1-24 | affected |
| 14 | golang-1-26 | 1.26.11-1 |
| 14 | golang-1-27 | 1.27.4-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-24 | affected |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-26 +2 | 1.26.11-1.1 | openSUSE-SU-2026:12529-1 |
| Tumbleweed | go1-27 +2 | 1.27.4-1.1 | openSUSE-SU-2026:12540-1 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| azure-service-operator +15 | not affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| azure-service-operator +3 | not affected |
References
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.