Vulnerabilities / CVE-2021-38297

critical

CVE-2021-38297

golang: Command-line arguments may overwrite global data

Published Modified CWE 120
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami, CBL-Mariner, Photon OS. Rated lower by Amazon (high), Red Hat (medium), AlmaLinux (medium), Oracle (medium).

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 packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasegolang1.16.9, 1.17.2
CBL-Mariner 1.0golang0:1.16.9-1.cm1
CBL-Mariner 2.0golang0:1.17.8-1.cm2
Photon OS 1.0go1.17.2-1.ph1
Photon OS 2.0go1.17.2-1.ph2
Photon OS 3.0go1.17.2-1.ph3
Photon OS 4.0go, kubernetes-dashboard1.17.2-1.ph4 and 1 more
alma 8go-toolset:rhel8::delve, go-toolset:rhel8::go-toolset, go-toolset:rhel8::golang and 6 more1.7.2-1.module_el8.6.0+2736+ec10aba8 and 1 more
alpine 3.15go1.17.2-r0
alpine 3.16go1.17.2-r0
alpine 3.17go1.17.2-r0
alpine 3.18go1.17.2-r0
Show all 96 entries from 28 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasegolang1.16.9, 1.17.2
CBL-Mariner 1.0golang0:1.16.9-1.cm1
CBL-Mariner 2.0golang0:1.17.8-1.cm2
Photon OS 1.0go1.17.2-1.ph1
Photon OS 2.0go1.17.2-1.ph2
Photon OS 3.0go1.17.2-1.ph3
Photon OS 4.0go1.17.2-1.ph4
Photon OS 4.0kubernetes-dashboard2.7.0-1.ph4
alma 8go-toolset:rhel8::delve1.7.2-1.module_el8.6.0+2736+ec10aba8
alma 8go-toolset:rhel8::go-toolset1.17.7-1.module_el8.6.0+2736+ec10aba8
alma 8go-toolset:rhel8::golang1.17.7-1.module_el8.6.0+2736+ec10aba8
alma 8go-toolset:rhel8::golang-bin1.17.7-1.module_el8.6.0+2736+ec10aba8
alma 8go-toolset:rhel8::golang-docs1.17.7-1.module_el8.6.0+2736+ec10aba8
alma 8go-toolset:rhel8::golang-misc1.17.7-1.module_el8.6.0+2736+ec10aba8
alma 8go-toolset:rhel8::golang-race1.17.7-1.module_el8.6.0+2736+ec10aba8
alma 8go-toolset:rhel8::golang-src1.17.7-1.module_el8.6.0+2736+ec10aba8
alma 8go-toolset:rhel8::golang-tests1.17.7-1.module_el8.6.0+2736+ec10aba8
alpine 3.15go1.17.2-r0
alpine 3.16go1.17.2-r0
alpine 3.17go1.17.2-r0
alpine 3.18go1.17.2-r0
alpine 3.19go1.17.2-r0
alpine 3.20go1.17.2-r0
alpine 3.21go1.17.2-r0
alpine 3.22go1.17.2-r0
alpine 3.23go1.17.2-r0
alpine 3.24go1.17.2-r0
alpine edgego1.17.2-r0
amazon linux 1golang1.16.15-1.37.amzn1
amazon linux 1golang-bin1.16.15-1.37.amzn1
amazon linux 1golang-docs1.16.15-1.37.amzn1
amazon linux 1golang-misc1.16.15-1.37.amzn1
amazon linux 1golang-race1.16.15-1.37.amzn1
amazon linux 1golang-shared1.16.15-1.37.amzn1
amazon linux 1golang-src1.16.15-1.37.amzn1
amazon linux 1golang-tests1.16.15-1.37.amzn1
amazon linux 2golang1.16.15-1.amzn2.0.1
amazon linux 2golang-bin1.16.15-1.amzn2.0.1
amazon linux 2golang-docs1.16.15-1.amzn2.0.1
amazon linux 2golang-misc1.16.15-1.amzn2.0.1
amazon linux 2golang-race1.16.15-1.amzn2.0.1
amazon linux 2golang-shared1.16.15-1.amzn2.0.1
amazon linux 2golang-src1.16.15-1.amzn2.0.1
amazon linux 2golang-tests1.16.15-1.amzn2.0.1
amazon linux 2022golang1.19.1-1.amzn2022.0.2
amazon linux 2022golang-bin1.19.1-1.amzn2022.0.2
amazon linux 2022golang-docs1.19.1-1.amzn2022.0.2
amazon linux 2022golang-misc1.19.1-1.amzn2022.0.2
amazon linux 2022golang-race1.19.1-1.amzn2022.0.2
amazon linux 2022golang-shared1.19.1-1.amzn2022.0.2
amazon linux 2022golang-src1.19.1-1.amzn2022.0.2
amazon linux 2022golang-tests1.19.1-1.amzn2022.0.2
amazon linux 2023golang1.19.3-2.amzn2023.0.2
amazon linux 2023golang-bin1.19.3-2.amzn2023.0.2
amazon linux 2023golang-docs1.19.3-2.amzn2023.0.2
amazon linux 2023golang-misc1.19.3-2.amzn2023.0.2
amazon linux 2023golang-race1.19.3-2.amzn2023.0.2
amazon linux 2023golang-shared1.19.3-2.amzn2023.0.2
amazon linux 2023golang-src1.19.3-2.amzn2023.0.2
amazon linux 2023golang-tests1.19.3-2.amzn2023.0.2
debian 10golang-1.111.11.6-1+deb10u6
debian 11golang-1.151.15.15-1~deb11u2
Oracle Linux 8delve1.7.2-1.0.1.module+el8.6.0+20559+3b94dc2a
Oracle Linux 8go-toolset1.17.7-1.module+el8.6.0+20559+3b94dc2a
Oracle Linux 8golang1.17.7-1.module+el8.6.0+20559+3b94dc2a
Oracle Linux 8golang-bin1.17.7-1.module+el8.6.0+20559+3b94dc2a
Oracle Linux 8golang-docs1.17.7-1.module+el8.6.0+20559+3b94dc2a
Oracle Linux 8golang-misc1.17.7-1.module+el8.6.0+20559+3b94dc2a
Oracle Linux 8golang-race1.17.7-1.module+el8.6.0+20559+3b94dc2a
Oracle Linux 8golang-src1.17.7-1.module+el8.6.0+20559+3b94dc2a
Oracle Linux 8golang-tests1.17.7-1.module+el8.6.0+20559+3b94dc2a
Red Hatgolangno fix listed
Red Hatgolang-binno fix listed
Red Hatgolang-docsno fix listed
Red Hatgolang-miscno fix listed
Red Hatgolang-srcno fix listed
Red Hatgolang-testsno fix listed
Red Hatgrafanano fix listed
Red Hatprometheus-node-exporterno fix listed
rocky 8go-toolset1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8go-toolset:rhel8::delve1.7.2-1.module+el8.6.0+824+8e984c20
rocky 8go-toolset:rhel8::go-toolset1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8go-toolset:rhel8::golang1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8go-toolset:rhel8::golang-bin1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8go-toolset:rhel8::golang-docs1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8go-toolset:rhel8::golang-misc1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8go-toolset:rhel8::golang-race1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8go-toolset:rhel8::golang-src1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8go-toolset:rhel8::golang-tests1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8golang1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8golang-bin1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8golang-docs1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8golang-misc1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8golang-race1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8golang-src1.17.7-1.module+el8.6.0+824+8e984c20
rocky 8golang-tests1.17.7-1.module+el8.6.0+824+8e984c20

References

All 20 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.