Skip to content

cmd/go: trust layer bypass when using cgo and SWIG #78335

@neild

Description

@neild

A well-crafted SWIG source file could take advantage
of a file-naming convention used inside the trust
boundary of the cgo compiler. Doing so could result
in arbitrary code execution during build time.
 
SWIG files are disallowed from using this convention.
 
Thank you to Juho Forsén of Mattermost for reporting this issue.
 
 
This is CVE-2026-27140 and Go issue https://go.dev/issue/78335.


This is a PRIVATE issue for CVE-2026-27140, tracked in http://b/479232126 and fixed by https://go-internal-review.git.corp.google.com/c/go/+/3520.

/cc @golang/security and @golang/release

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Securityrelease-blockervulncheck or vulndbIssues for the x/vuln or x/vulndb repo

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions