CVE-2026-97042
published high CVSS 3.1 · 8.8Linker flag injection via cgo_import_dynamic and PE DLL names in cmd/cgo, cmd/compile, and cmd/link
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Go toolchain | — | cmd/cgo0 to < 1.26.11 · 1.27.0-0 to < 1.27.4 · Other versions: unaffected | Affected | Not stated | Go |
| Go toolchain | — | cmd/compile0 to < 1.26.11 · 1.27.0-0 to < 1.27.4 · Other versions: unaffected | Affected | Not stated | Go |
| Go toolchain | — | cmd/link0 to < 1.26.11 · 1.27.0-0 to < 1.27.4 · Other versions: unaffected | Affected | Not stated | Go |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-4125 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3475 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | go-toolset | Advisory build | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| Alpine Linux | edge | go | Fixed | 1.27.4-r0 | Package fix record |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | go-toolsetaarch64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Red Hat Enterprise Linux | RHEL-10 | go-toolsetaarch64 | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| AlmaLinux | 10 | golang | Advisory build | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux | 10 | golang-bin | Advisory build | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux | 10 | golang-docs | Advisory build | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux | 10 | golang-misc | Advisory build | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux | 10 | golang-race | Advisory build | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux | 10 | golang-src | Advisory build | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux | 10 | golang-tests | Advisory build | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux | 8 | delve | Advisory build | 1.26.1-2.module_el8.10.0+4353+8cb525cc | ALSA-2026:102592 |
| AlmaLinux | 9 | go-toolset | Advisory build | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux | 9 | golang | Advisory build | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux | 9 | golang-bin | Advisory build | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux | 9 | golang-docs | Advisory build | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux | 9 | golang-misc | Advisory build | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux | 9 | golang-race | Advisory build | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux | 9 | golang-src | Advisory build | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux | 9 | golang-tests | Advisory build | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| Alpine Linux | v3.24 | go | Fixed | 1.26.11-r0 | Package fix record |
| Oracle Linux | 10 | go-toolsetx86_64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golangaarch64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golangx86_64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-binaarch64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-binx86_64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-docsaarch64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-docsx86_64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-miscaarch64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-miscx86_64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-raceaarch64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-racex86_64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-srcaarch64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-srcx86_64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-testsaarch64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 10 | golang-testsx86_64 | Advisory build | 0:1.27.4-3.0.1.el10_3 | ELSA-2026-102587 |
| Oracle Linux | 8 | delveaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.1-2.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | delvex86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.1-2.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | go-toolsetaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | go-toolsetx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golangaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golangx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-binaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-binx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-docsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-docsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-miscaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-miscx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-raceaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-racex86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-srcaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-srcx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-testsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 8 | golang-testsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.26.11-1.0.1.module+el8.10.0+91145+2c6ba776 | ELSA-2026-102592 |
| Oracle Linux | 9 | go-toolsetaarch64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | go-toolsetx86_64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golangaarch64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golangx86_64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-binaarch64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-binx86_64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-docsaarch64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-docsx86_64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-miscaarch64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-miscx86_64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-raceaarch64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-racex86_64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-srcaarch64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-srcx86_64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-testsaarch64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Oracle Linux | 9 | golang-testsx86_64 | Advisory build | 0:1.27.4-1.0.1.el9_9 | ELSA-2026-102586 |
| Red Hat Enterprise Linux | RHEL-10 | go-toolsetppc64le | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | go-toolsets390x | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | go-toolsetx86_64 | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golangaarch64 | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golangppc64le | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golangs390x | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golangsrc | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golangx86_64 | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-binaarch64 | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-binppc64le | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-bins390x | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-binx86_64 | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-docsnoarch | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-miscnoarch | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-raceaarch64 | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-raceppc64le | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-races390x | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-racex86_64 | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-srcnoarch | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-10 | golang-testsnoarch | Advisory build | 1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux | RHEL-8 | delveaarch64 | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux | RHEL-8 | delveppc64le | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux | RHEL-8 | delvesrc | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux | RHEL-8 | delvex86_64 | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debuginfoaarch64 | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debuginfoppc64le | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debuginfox86_64 | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debugsourceaarch64 | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debugsourceppc64le | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debugsourcex86_64 | Advisory build | 1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
Building a malicious package that uses "//go:cgo_import_dynamic" or links against a crafted PE object on Windows could pass unsafe library arguments to the external linker. The compiler only checked the first character of the library name in "//go:cgo_import_dynamic" directives and skipped validation in cgo-generated files. In addition, on Windows, "cmd/cgo" and "cmd/link" did not validate imported DLL names extracted from PE object files before emitting "-l<name>" flags for the external linker, allowing a crafted DLL name containing ".." path traversal or special characters to reference arbitrary files on disk. The compiler now validates every character of the library name in "//go:cgo_import_dynamic" directives (including in cgo-generated files on Windows) and rejects ".." path traversal, and "cmd/cgo" and "cmd/link" reject PE imported DLL names containing path separators, "..", ":", or leading "-" or "@".
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Go toolchain | cmd/cgo | 0 to < 1.26.11 (affected · semver)1.27.0-0 to < 1.27.4 (affected · semver)Default: unaffected | Go · cna |
| Go toolchain | cmd/compile | 0 to < 1.26.11 (affected · semver)1.27.0-0 to < 1.27.4 (affected · semver)Default: unaffected | Go · cna |
| Go toolchain | cmd/link | 0 to < 1.26.11 (affected · semver)1.27.0-0 to < 1.27.4 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
2- CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
- CWE-88 CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
4Provider assertions
2Go · cna
Linker flag injection via cgo_import_dynamic and PE DLL names in cmd/cgo, cmd/compile, and cmd/link
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 250011e582c5d4755504163e5c0753b4aae59e9e23aa58d2fc98a63478e5622b
- Ingested
- 16 Nov 2026, 17:32:12 UTC
- Source record
- Official CVE record