{"id":"CVE-2021-38297","aliases":["CVE-2021-38297","GO-2022-0247","BIT-GOLANG-2021-38297"],"related":[],"kind":"vulnerability","state":"published","title":"Buffer overflow in WASM modules in misc/wasm and cmd/link","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nIf 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.","format":"markdown","source":"go"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-10-18T00:00:00.000Z","modified":"2026-09-08T08:47:48.156Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.16.9"},{"type":"semver","introduced":"1.17.0-0","status":"affected","fixed":"1.17.2"}],"ecosystem":"Go","package":"toolchain","purl":"pkg:golang/toolchain","source":"go"},{"ranges":[{"status":"affected","fixed":"1.16.9"},{"status":"affected","introduced":"1.17.0","fixed":"1.17.2"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.16.9"},{"type":"semver","introduced":"1.17.0","status":"affected","fixed":"1.17.2"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://groups.google.com/forum/#%21forum/golang-announce","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/AEBu9j7yj5A","tags":["advisory","mailing-list","release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20211118-0006/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4OFS3M3OFB24SWPTIAPARKGPUMQVUY6Z/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ON7BQRRJZBOR5TJHURBAB3WLF4YXFC6Z/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202208-02","tags":["advisory","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://go.dev/cl/354571","tags":["fix"],"sources":["go"]},{"url":"https://go.googlesource.com/go/+/77f2750f4398990eed972186706f160631d7dae4","tags":["fix"],"sources":["go"]},{"url":"https://go.dev/issue/48797","tags":["report"],"sources":["go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38297","tags":["web"],"sources":["bitnami"]}],"credits":["Ben Lubar"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38297","url":"https://www.cve.org/CVERecord?id=CVE-2021-38297","licence":"CVE Terms of Use","modified":"2024-08-04T01:37:16.318Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0247","url":"https://pkg.go.dev/vuln/GO-2022-0247","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38297","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38297","licence":"Public domain","modified":"2026-06-17T04:01:49.353Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2021-38297","url":"https://osv.dev/vulnerability/BIT-GOLANG-2021-38297","licence":"Apache-2.0","modified":"2026-09-08T08:47:48.156Z"}],"updatedAt":"2026-11-25T22:58:04.520Z","epss":{"score":0.10962,"percentile":0.95989,"date":"2026-12-01T12:00:22.000Z"}}