Advisory

GO-2026-4871

Also known as: BIT-golang-2026-27140, CVE-2026-27140

Summary

Code execution vulnerability in SWIG code generation in cmd/go

Details

SWIG file names containing 'cgo' and well-crafted payloads could lead to code smuggling and arbitrary code execution at build time due to trust layer bypass.

Severity

Not rated by the source.

Dates

Published
2026-04-07 22:53 UTC
Modified
2026-05-13 10:44 UTC

Affected packages and fixes

toolchain

Go · All systems

Affected

  • introduced 0, fixed 1.25.9, introduced 1.26.0-0, fixed 1.26.2 (semver)

Fixed versions

1.25.9, 1.26.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences