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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| toolchain (Go) | before 1.16.9, from 1.17.0-0 before 1.17.2 | Go Vulnerability Database |
| golang go | before 1.16.9, from 1.17.0 before 1.17.2 | NVD |
| fedoraproject fedora | 34, 35 | NVD |
| golang (Bitnami) | before 1.16.9, from 1.17.0 before 1.17.2 | Bitnami Vulnerability Database |
All scores
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical 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-announce | web | |
| https://groups.google.com/g/golang-announce/c/AEBu9j7yj5A | advisory, 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-02 | advisory, third-party-advisory, vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html | mailing-list, web | |
| https://go.dev/cl/354571 | fix | |
| https://go.googlesource.com/go/+/77f2750f4398990eed972186706f160631d7dae4 | fix | |
| https://go.dev/issue/48797 | report | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-38297 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-38297 changed 2024-08-04 | CVE Terms of Use |
| Go Vulnerability Database | GO-2022-0247 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2021-38297 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2021-38297 changed 2026-09-08 | Apache-2.0 |