GO-2026-4871

Source
https://pkg.go.dev/vuln/GO-2026-4871
Import Source
https://vuln.go.dev/ID/GO-2026-4871.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-4871
Aliases
Related
Published
2026-04-07T22:53:49Z
Modified
2026-04-13T08:27:25.964585875Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-4871"
}
References
Credits
    • Juho Forsén of Mattermost

Affected packages

Go / toolchain

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.25.9
Introduced
1.26.0-0
Fixed
1.26.2

Ecosystem specific

{
    "imports": [
        {
            "path": "cmd/go"
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-4871.json"