CVE-2026-27140
High 8.8 CVSS 3.1
Description
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-04-08
- Last modified
- 2026-09-10
- Assigned by
- security@golang.org
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.7 %
higher than 48 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Golang | Go | < 1.25.9 | Affected |
| Golang | Go | ≥ 1.26.0, < 1.26.2 | Affected |
Weakness type
-
CWE-863: Incorrect Authorization
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
-
CWE-641: Improper Restriction of Names for Files and Other Resources
The product constructs the name of a file or other resource using input from an upstream component, but it does not restrict or incorrectly restricts the resulting name.
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
- https://access.redhat.com/errata/RHSA-2026:10217
- https://access.redhat.com/errata/RHSA-2026:10219
- https://access.redhat.com/errata/RHSA-2026:10704
- https://access.redhat.com/errata/RHSA-2026:16021
- https://access.redhat.com/errata/RHSA-2026:16024
- https://access.redhat.com/errata/RHSA-2026:16494
- https://access.redhat.com/errata/RHSA-2026:16497
- https://access.redhat.com/errata/RHSA-2026:16498
- https://access.redhat.com/errata/RHSA-2026:16694
- https://access.redhat.com/errata/RHSA-2026:16697
- https://access.redhat.com/errata/RHSA-2026:16698
- https://access.redhat.com/errata/RHSA-2026:23246
- https://access.redhat.com/errata/RHSA-2026:25182
- https://access.redhat.com/errata/RHSA-2026:34099
- https://access.redhat.com/errata/RHSA-2026:56854
- https://access.redhat.com/errata/RHSA-2026:57408
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.