PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-97039 Go toolchain CVE debrief

A flag sanitization bypass vulnerability in the Go toolchain's cmd/go package could allow a malicious package to load untrusted pkg-config '.pc' files or inject unvalidated compiler and linker flags. The vulnerability is due to the pkg-config flag allowlist permitting certain flags and package arguments that could be used to rewrite paths in system '.pc' files. The Go toolchain has addressed this issue by disallowing certain flags and paths in '#cgo pkg-config:' directives and inspecting cgoCPPFLAGS when checking internal linking compatibility.

Vendor
Go toolchain
Product
cmd/go
CVSS
HIGH 8.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-11
Original CVE updated
2026-11-16
Advisory published
2026-11-11
Advisory updated
2026-11-16

Who should care

Defenders responsible for Go toolchain deployments, particularly those using cmd/go, should assess exposure and prioritize patching vulnerable versions. This includes operators managing Go-based systems, platform administrators, vulnerability management teams, and security teams responsible for monitoring and mitigating potential threats.

Why it matters

Defenders should prioritize verifying the versions of cmd/go in use and applying patches to vulnerable versions to prevent potential exploitation.

  • Potential injection of unvalidated compiler and linker flags
  • Possible loading of untrusted pkg-config '.pc' files
  • Need to verify versions of cmd/go in use and apply patches

Technical summary

The Go toolchain's cmd/go package is vulnerable to a flag sanitization bypass due to the pkg-config flag allowlist permitting certain flags and package arguments. This could allow a malicious package to load untrusted pkg-config '.pc' files or inject unvalidated compiler and linker flags. The vulnerability is addressed by disallowing certain flags and paths in '#cgo pkg-config:' directives and inspecting cgoCPPFLAGS when checking internal linking compatibility. Defenders should prioritize verifying the versions of cmd/go in use and applying patches to vulnerable versions.

Defensive priority

Defenders should prioritize verifying the versions of cmd/go in use and applying patches to vulnerable versions.

Recommended defensive actions

  • Verify the version of cmd/go in use and apply patches to vulnerable versions
  • Review and restrict the use of pkg-config flags and package arguments
  • Monitor for and address potential exploitation attempts
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The CVE record and source item provide details on the vulnerability, including its description, affected versions, and references to supplemental sources. Defenders should verify the versions of cmd/go in use and apply patches to vulnerable versions to prevent potential exploitation. The vulnerability allows a malicious package to load untrusted pkg-config '.pc' files or inject unvalidated compiler and linker flags due to the pkg-config flag allowlist permitting certain flags and package arguments. To address this, the Go toolchain's

Sources and references

Verified primary and authoritative sources

  • CVE-2026-97039 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-97039

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-97039 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-97039

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.