CVE-2021-38297
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
11.0% (higher than 95% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GO-2022-0247BIT-GOLANG-2021-38297

Description

Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when GOARCH=wasm GOOS=js is used.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
toolchain (Go)before 1.16.9, from 1.17.0-0 before 1.17.2Go Vulnerability Database
golang gobefore 1.16.9, from 1.17.0 before 1.17.2NVD
fedoraproject fedora34, 35NVD
golang (Bitnami)before 1.16.9, from 1.17.0 before 1.17.2Bitnami Vulnerability Database

All scores

NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical rating

Classification

What each source says

CVE List

Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when GOARCH=wasm GOOS=js is used.

Go Vulnerability Database

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.

NVD (es)

Go versiones anteriores a 1.16.9 y versiones 1.17.x anteriores a 1.17.2, presenta un Desbordamiento de Búfer por medio de argumentos grandes en una invocación de función desde un módulo WASM, cuando GOARCH=wasm GOOS=js es usado

References

https://groups.google.com/forum/#%21forum/golang-announceweb
https://groups.google.com/g/golang-announce/c/AEBu9j7yj5Aadvisory, mailing-list, release-notes, third-party-advisory, web
https://security.netapp.com/advisory/ntap-20211118-0006/advisory, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4OFS3M3OFB24SWPTIAPARKGPUMQVUY6Z/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ON7BQRRJZBOR5TJHURBAB3WLF4YXFC6Z/vendor-advisory, web
https://security.gentoo.org/glsa/202208-02advisory, third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2023/04/msg00021.htmlmailing-list, web
https://go.dev/cl/354571fix
https://go.googlesource.com/go/+/77f2750f4398990eed972186706f160631d7dae4fix
https://go.dev/issue/48797report
https://nvd.nist.gov/vuln/detail/CVE-2021-38297web

Sources

SourceRecordLicence
CVE ListCVE-2021-38297 changed 2024-08-04CVE Terms of Use
Go Vulnerability DatabaseGO-2022-0247 changed 2024-05-20CC-BY-4.0
NVDCVE-2021-38297 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2021-38297 changed 2026-09-08Apache-2.0