CVE-2026-97038
Last modified
CVE-2026-97038 is a vulnerability of currently unknown severity. 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. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
Description
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 "LC_LINKER_OPTION" 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, "LC_LINKER_OPTION" load commands, or LTO IR sections, and disallows "-l:<filename>" and ":", "=", or path separators in "-l" flags.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Go toolchain | cmd/go | < 1.26.11; >= 1.27.0-0, < 1.27.4 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-97038?
How severe is CVE-2026-97038?
How do I fix CVE-2026-97038?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-97032HTTP/2 servers could end up crashing due to inadvertently mo…7.5
- CVE-2026-97033Building a malicious package that uses cgo could cause arbit…
- CVE-2026-97034When using GCC, building a malicious package that uses cgo c…
- CVE-2026-97035When using Clang or GCC, building a malicious package that u…
- CVE-2026-97036On Darwin, building a malicious package that uses cgo could …
- CVE-2026-97037Building a malicious package that uses cgo could cause arbit…
- CVE-2026-97039Building a malicious package that uses "#cgo pkg-config:" di…
- CVE-2026-9704A flaw was found in Keycloak. An authenticated user with low…8.8
- CVE-2026-97040Building a package containing a crafted ".syso" file could b…
- CVE-2026-97041Building a malicious package containing "//go:cgo_*" compile…
- CVE-2026-97042Building a malicious package that uses "//go:cgo_import_dyna…
- CVE-2026-97043Building a malicious package that uses cgo could bypass "#cg…
Are you affected by CVE-2026-97038?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
