UNKNOWN Go

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

GO-2022-0247 · BIT-golang-2021-38297 · CVE-2021-38297

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes