# CVE-2026-97038: Arbitrary code execution via crafted .syso files and cgo linker input files in cmd/go

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 53% of CVEs (2026-12-02)
- Published: 2026-11-11T02:51:11.000Z
- Modified: 2026-11-27T06:55:51.201Z
- Also known as: GO-2026-6853, BIT-GOLANG-2026-97038
- Related: RHSA-2026:101231, RHSA-2026:102586, RHSA-2026:102587, RHSA-2026:102592, RHSA-2026:99003, RHSA-2026:99004
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- cmd/go: before 1.26.11; from 1.27.0-0 before 1.27.4
- toolchain (Go): before 1.26.11; from 1.27.0-0 before 1.27.4
- golang (Bitnami): before 1.26.11; from 1.27.0-0 before 1.27.4

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/862151> (fix, web)
- <https://go.dev/issue/82572> (report, web)
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM> (web)
- <https://pkg.go.dev/vuln/GO-2026-6853> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-97038> (web)

## Sources

- CVE List: [CVE-2026-97038](https://www.cve.org/CVERecord?id=CVE-2026-97038), CVE Terms of Use, modified 2026-11-17
- Go Vulnerability Database: [GO-2026-6853](https://pkg.go.dev/vuln/GO-2026-6853), CC-BY-4.0, modified 2026-11-27
- NVD: [CVE-2026-97038](https://nvd.nist.gov/vuln/detail/CVE-2026-97038), Public domain, modified 2026-11-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2026-97038](https://osv.dev/vulnerability/BIT-GOLANG-2026-97038), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-97038 · Whole record: https://cve.day/CVE-2026-97038.json · Rebuilt by cve.day 2026-11-27T07:27:24.815Z
