# CVE-2021-38297: Buffer overflow in WASM modules in misc/wasm and cmd/link

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 11.0%, higher than 95% of CVEs (2026-12-01)
- Published: 2021-10-18T00:00:00.000Z
- Modified: 2026-09-08T08:47:48.156Z
- Also known as: GO-2022-0247, BIT-GOLANG-2021-38297
- Weaknesses: CWE-120
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- toolchain (Go): before 1.16.9; from 1.17.0-0 before 1.17.2
- golang go: before 1.16.9; from 1.17.0 before 1.17.2
- fedoraproject fedora: 34; 35
- golang (Bitnami): before 1.16.9; from 1.17.0 before 1.17.2

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## 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

- CVE List: [CVE-2021-38297](https://www.cve.org/CVERecord?id=CVE-2021-38297), CVE Terms of Use, modified 2024-08-04
- Go Vulnerability Database: [GO-2022-0247](https://pkg.go.dev/vuln/GO-2022-0247), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-38297](https://nvd.nist.gov/vuln/detail/CVE-2021-38297), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2021-38297](https://osv.dev/vulnerability/BIT-GOLANG-2021-38297), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-38297 · Whole record: https://cve.day/CVE-2021-38297.json · Rebuilt by cve.day 2026-11-25T22:58:04.520Z
