Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Go toolchain / cmd/go | affected 0 before 1.25.9; affected 1.26.0-0 before 1.26.2 |
CWE
No CWE identifiers supplied.
References
- https://go.dev/cl/763768
- https://go.dev/issue/78335
- https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU
- https://pkg.go.dev/vuln/GO-2026-4871
ADP enrichment
No English description supplied.
No references supplied.
A flaw was found in the Go programming language (golang) and its command-line tool (cmd/go). A remote attacker could exploit this during the build process by crafting malicious SWIG (Simplified Wrapper and Interface Generator) file names that contain "cgo" and specific payloads. This could lead to code smuggling and arbitrary code execution, bypassing trust mechanisms and allowing the attacker to run unauthorized code.
- https://access.redhat.com/security/cve/CVE-2026-27140
- https://bugzilla.redhat.com/show_bug.cgi?id=2456341
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27140.json
- https://access.redhat.com/errata/RHSA-2026:16024
- https://access.redhat.com/errata/RHSA-2026:10217
- https://access.redhat.com/errata/RHSA-2026:10704
- https://access.redhat.com/errata/RHSA-2026:16698
- https://access.redhat.com/errata/RHSA-2026:16697
- https://access.redhat.com/errata/RHSA-2026:16694
- https://access.redhat.com/errata/RHSA-2026:16494
- https://access.redhat.com/errata/RHSA-2026:16498
- https://access.redhat.com/errata/RHSA-2026:16497
- https://access.redhat.com/errata/RHSA-2026:16021
- https://access.redhat.com/errata/RHSA-2026:10219
- https://access.redhat.com/errata/RHSA-2026:56854
- https://access.redhat.com/errata/RHSA-2026:34099
- https://access.redhat.com/errata/RHSA-2026:25182
- https://access.redhat.com/errata/RHSA-2026:23246
- https://access.redhat.com/errata/RHSA-2026:57408
- https://access.redhat.com/errata/RHSA-2026:57545