GO-2022-0247

Source
https://pkg.go.dev/vuln/GO-2022-0247
Import Source
https://vuln.go.dev/ID/GO-2022-0247.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2022-0247
Aliases
Published
2022-05-24T20:14:28Z
Modified
2024-05-20T16:03:47Z
Summary
Buffer overflow in WASM modules in misc/wasm and cmd/link
Details

When invoking functions from WASM modules, built using GOARCH=wasm GOOS=js, passing very large arguments can cause portions of the module to be overwritten with data from the arguments due to a buffer overflow error.

If using wasm_exec.js to execute WASM modules, users will need to replace their copy (as described in https://golang.org/wiki/WebAssembly#getting-started) after rebuilding any modules.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2022-0247"
}
References
Credits
    • Ben Lubar

Affected packages

Go / toolchain

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.16.9
Introduced
1.17.0-0
Fixed
1.17.2

Ecosystem specific

{
    "imports": [
        {
            "path": "cmd/link",
            "goarch": [
                "wasm"
            ],
            "symbols": [
                "Link.address"
            ],
            "goos": [
                "js"
            ]
        }
    ]
}