GO-2022-0247

Buffer overflow in WASM modules in misc/wasm and cmd/link

En bref

Publiée
Mise à jour
CVE
CVE-2021-38297
Alias
BIT-golang-2021-38297

Description

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.

Paquets affectés

PaquetVersions
Go · toolchainintroduced 0, fixed 1.16.9, introduced 1.17.0-0, fixed 1.17.2

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database