CVE-2021-38297
published 2021-10-18CVE-2021-38297: 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…
PriorityP355critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
10.30%
95.1th percentile
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
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-1.15 | < golang-1.15 1.15.15-1~deb11u2 (bullseye) | golang-1.15 1.15.15-1~deb11u2 (bullseye) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| golang | go | < 1.16.9 | 1.16.9 |
| golang | go | >= 1.17.0 < 1.17.2 | 1.17.2 |
| msrc | cbl2_golang_1.17.8-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_golang_1.16.9-1_on_cbl_mariner_1.0 | — | — |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_msrc9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Buffer overflow in WASM modules in misc/wasm and cmd/link
osv·2022-05-24
CVE-2021-38297 Buffer overflow in WASM modules in misc/wasm and cmd/link
Buffer overflow in WASM modules in misc/wasm and cmd/link
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.
GHSA
GHSA-xv38-944c-p763: Go before 1
ghsa_unreviewed·2022-05-24
CVE-2021-38297 [CRITICAL] CWE-120 GHSA-xv38-944c-p763: Go before 1
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.
OSV
CVE-2021-38297: Go before 1
osv·2021-10-18·CVSS 9.8
CVE-2021-38297 [CRITICAL] CVE-2021-38297: Go before 1
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.
Microsoft
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.
vendor_msrc·2021-10-12·CVSS 9.8
CVE-2021-38297 [CRITICAL] CWE-120 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 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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
Red Hat
golang: Command-line arguments may overwrite global data
vendor_redhat·2021-10-07·CVSS 9.8
CVE-2021-38297 [CRITICAL] CWE-20 golang: Command-line arguments may overwrite global data
golang: Command-line arguments may overwrite global data
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.
A flaw was found in golang. This vulnerability can only be triggered when invoking functions from vulnerable WASM (WebAssembly) Modules. Go can be compiled to WASM. If the product or service doesn't use WASM functions, it is not affected, although it uses golang.
Statement: * Although this flaw has a higher CVSS score, in a strict sense, the flaw could possibly enable code exec, either Red Hat products don't use WASM, or don't expose WASM functions in a way that makes code exec possible. For this reason, the Red Hat impact for this flaw is Moderate.
* Because the flawed
Debian
CVE-2021-38297: golang-1.15 - Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large argume...
vendor_debian·2021·CVSS 9.8
CVE-2021-38297 [CRITICAL] CVE-2021-38297: golang-1.15 - Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large argume...
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.
Scope: local
bullseye: resolved (fixed in 1.15.15-1~deb11u2)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://groups.google.com/forum/#%21forum/golang-announcehttps://groups.google.com/g/golang-announce/c/AEBu9j7yj5Ahttps://lists.debian.org/debian-lts-announce/2023/04/msg00021.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4OFS3M3OFB24SWPTIAPARKGPUMQVUY6Z/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ON7BQRRJZBOR5TJHURBAB3WLF4YXFC6Z/https://security.gentoo.org/glsa/202208-02https://security.netapp.com/advisory/ntap-20211118-0006/https://groups.google.com/forum/#%21forum/golang-announcehttps://groups.google.com/g/golang-announce/c/AEBu9j7yj5Ahttps://lists.debian.org/debian-lts-announce/2023/04/msg00021.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4OFS3M3OFB24SWPTIAPARKGPUMQVUY6Z/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ON7BQRRJZBOR5TJHURBAB3WLF4YXFC6Z/https://security.gentoo.org/glsa/202208-02https://security.netapp.com/advisory/ntap-20211118-0006/
2021-10-18
Published