Skip to content
Noroxi
CVE.org (no NVD analysis yet)· CNA Go

CVE-2026-97043: Unexpected code execution via escaped quotes in //go:cgo_ldflag in cmd/go and cmd/compile

—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 0/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.26% (FIRST EPSS).
  • Fixed version: Go toolchain cmd/compile 1.26.11, 1.27.4; Go toolchain cmd/go 1.26.11, 1.27.4; azl3 gcc 13.2.0-7 on Azure Linux 3.0 Release Notes.

Low priority for now. Upgrade to Go toolchain cmd/compile 1.26.11, 1.27.4; Go toolchain cmd/go 1.26.11, 1.27.4; azl3 gcc 13.2.0-7 on Azure Linux 3.0 Release Notes or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

Building a malicious package that uses cgo could bypass "#cgo LDFLAGS" validation and cause unexpected code execution at build time, or cause the go command to panic, via crafted quoting in "//go:cgo_ldflag" directives. When "cmd/cgo" generates "_cgo_gotypes.go", it quotes each "#cgo LDFLAGS" argument with strconv.Quote in a "//go:cgo_ldflag" directive, but "cmd/compile" and "cmd/go" parsed those directives by splitting on raw quote characters without handling backslash escapes or unquoting the string. This mismatch allowed disallowed linker flags or unvalidated linker search paths to be smuggled past the go command's flag checks and passed to the external linker. In addition, deduplicating LDFLAGS in the go command could panic with an out-of-bounds slice index when a prefix of the flag list matched near the end of the slice. "cmd/compile" and "cmd/go" now properly handle backslash-escaped quotes and unquote "//go:cgo_*" pragma strings with strconv.Unquote, and the slice bounds check in processCgoOutputs has been fixed.

Published
Nov 11, 2026
Updated
Nov 12, 2026
EPSS
0.2% · 18th percentile

Report tools

JSON

Action score

0

Monitor

Low priority for now.

CVSS
0 / 40 · —
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.2%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2026-97043

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

—

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Go). Independent of NVD's CPE analysis and usually ahead of it.

  • Go toolchain cmd/compile

    • before 1.26.11affected · semver
    • 1.27.0-0 and later · before 1.27.4affected · semver
  • Go toolchain cmd/go

    • before 1.26.11affected · semver
    • 1.27.0-0 and later · before 1.27.4affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.24gobefore 1.26.11-r01.26.11-r0
Debian:12golang-1.19from 0—
Debian:13golang-1.24from 0—
Debian:14golang-1.26before 1.26.11-11.26.11-1
Debian:14golang-1.27before 1.27.4-11.27.4-1
Gotoolchainfrom 1.27.0-0 · before 1.27.41.27.4
Gotoolchainbefore 1.26.111.26.11
openSUSE:Tumbleweedgo1.26before 1.26.11-1.11.26.11-1.1
openSUSE:Tumbleweedgo1.27before 1.27.4-1.11.27.4-1.1
SUSE:Linux Enterprise Module for Development Tools 15 SP7go1.26before 1.26.11-150000.1.39.11.26.11-150000.1.39.1
SUSE:Linux Enterprise Module for Development Tools 15 SP7go1.27before 1.27.4-150000.1.18.11.27.4-150000.1.18.1

Other highest-scoring records for the same primary product.

  • CVE-2023-24531Output of "go env" does not sanitize values in cmd/go
    39Monitor
  • CVE-2024-45340GOAUTH credential leak in cmd/go
    35Monitor
  • CVE-2026-56865Fix transparency log tile verification bypass in golang.org/x/mod/sumdb/tlog
    33Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2026-97038Nov 11, 2026 · Arbitrary code execution via crafted .syso files and cgo linker input files in cmd/go
    0Monitor
  • ← EarlierCVE-2026-97039Nov 11, 2026 · Flag sanitization bypass via "#cgo pkg-config:" directives in cmd/go
    0Monitor
  • ← EarlierCVE-2026-97040Nov 11, 2026 · Cgo directive injection via .syso files disguised as Go object files in cmd/go and cmd/link
    0Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Go toolchain cmd/compile1.26.11Vendor (CNA)
Go toolchain cmd/compile1.27.4Vendor (CNA)
Go toolchain cmd/go1.26.11Vendor (CNA)
Go toolchain cmd/go1.27.4Vendor (CNA)
azl3 gcc 13.2.0-7 on Azure Linux 3.0Release NotesMicrosoft (MSRC)
azl3 golang 1.26.10-1 on Azure Linux 3.0Release NotesMicrosoft (MSRC)
azl3 golang 1.26.11-1 on Azure Linux 3.0Release NotesMicrosoft (MSRC)
azl3 golang 1.27.3-1 on Azure Linux 3.0Release NotesMicrosoft (MSRC)
azl3 golang 1.27.4-1 on Azure Linux 3.0Release NotesMicrosoft (MSRC)
azl3 python-tensorboard 2.16.2-6 on Azure Linux 3.0Release NotesMicrosoft (MSRC)
azl3 tensorflow 2.16.1-11 on Azure Linux 3.0Release NotesMicrosoft (MSRC)
alpine:go1.26.11-r0 · Alpine:v3.24Package registry (OSV)
debian:golang-1.261.26.11-1 · Debian:14Package registry (OSV)
debian:golang-1.271.27.4-1 · Debian:14Package registry (OSV)
Go:toolchain1.26.11Package registry (OSV)
Go:toolchain1.27.4Package registry (OSV)
opensuse:go1.261.26.11-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:go1.271.27.4-1.1 · openSUSE:TumbleweedPackage registry (OSV)
suse:go1.261.26.11-150000.1.39.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7Package registry (OSV)
suse:go1.271.27.4-150000.1.18.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Fix recordedsame day
  2. Published
  3. TodayNov 16, 2026+5 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2026-970350 days apartUnexpected code execution and arbitrary file write via Clang -gen-* and GCC -gnat* flags in cgo in cmd/go
    0Monitor
  • CVE-2026-970360 days apartArbitrary code execution during build on darwin via "-l to_library" in cgo in cmd/go
    0Monitor
  • CVE-2026-970390 days apartFlag sanitization bypass via "#cgo pkg-config:" directives in cmd/go
    0Monitor

Not on record for this CVE: patch commit or PR link · researcher credit · public bounty program.

Technical details

No CVSS vector for this record, so attack conditions can't be derived.

References

Show all references (3 more)

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records