CVE-2021-38297
golang: Command-line arguments may overwrite global data
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-120
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | golang | <1.16.9>=1.17.0, <1.17.2 | 1.16.91.17.2 |
Open a package to see all its vulnerabilities.
Operating systems · 28 fixes
Oracle Linux 1 release · 2 packages
fixed 2
go-toolset
delve
| Release | Package | Fixed in |
|---|---|---|
| 8 | go-toolset +7 | 1.17.7-1.module+el8.6.0+20559+3b94dc2a |
| 8 | delve | 1.7.2-1.0.1.module+el8.6.0+20559+3b94dc2a |
Photon OS 1 release · 2 packages
fixed 2
go
kubernetes-dashboard
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | go | 1.17.2-1.ph4 |
| 4.0 | kubernetes-dashboard | 2.7.0-1.ph4 |
Red Hat 2 releases · 3 packages
eol 1
fixed 2
golang
go-toolset
delve
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | golang +7 | eol | — |
| 8 (go-toolset:rhel8) | go-toolset +7 | 0:1.17.7-1.module+el8.6.0+14297+32a15e19 | RHSA-2022:1819 |
| 8 (go-toolset:rhel8) | delve | 0:1.7.2-1.module+el8.6.0+12972+ebab5911 | RHSA-2022:1819 |
SUSE Linux Enterprise 1 release · 2 packages
fixed 2
google-guest-agent
google-osconfig-agent
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | google-guest-agent | 20230221.00-150000.1.34.1 | SUSE-SU-2023:0600-1 |
| 15.4 | google-osconfig-agent | 20230222.00-150000.1.27.1 | SUSE-SU-2023:0602-1 |
alma 1 release · 2 packages
fixed 2
go-toolset
delve
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.17.7-1.module_el8.6.0+2736+ec10aba8 |
| 8 (go-toolset:rhel8) | delve | 1.7.2-1.module_el8.6.0+2736+ec10aba8 |
alpine 4 releases · 1 package
fixed 4
go
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.17.2-r0 |
| 3.23 | go | 1.17.2-r0 |
| 3.24 | go | 1.17.2-r0 |
| edge | go | 1.17.2-r0 |
amazon linux 1 release · 1 package
fixed 1
golang
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +7 | 1.19.3-2.amzn2023.0.2 |
debian 2 releases · 2 packages
fixed 2
golang-1-11
golang-1-15
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | 1.11.6-1+deb10u6 |
| 11 | golang-1-15 | 1.15.15-1~deb11u2 |
openSUSE 1 release · 4 packages
fixed 4
go1-16
go1-17
google-guest-agent
google-osconfig-agent
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-16 +2 | 1.16.9-1.1 | openSUSE-SU-2024:11567-1 |
| Tumbleweed | go1-17 +2 | 1.17.2-1.1 | openSUSE-SU-2024:11568-1 |
| Tumbleweed | google-guest-agent | 20230221.00-2.1 | openSUSE-SU-2024:12758-1 |
| Tumbleweed | google-osconfig-agent | 20230222.00-2.1 | openSUSE-SU-2024:12759-1 |
rocky 2 releases · 2 packages
fixed 3
go-toolset
delve
| Release | Package | Fixed in |
|---|---|---|
| 8 | go-toolset +7 | 1.17.7-1.module+el8.6.0+824+8e984c20 |
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.17.7-1.module+el8.6.0+824+8e984c20 |
| 8 (go-toolset:rhel8) | delve | 1.7.2-1.module+el8.6.0+824+8e984c20 |
ubuntu 3 releases · 1 package
affected 3
golang-1-13
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-13 +1 | affected |
| 20.04-ESM | golang-1-13 +2 | affected |
| 22.04 | golang-1-13 | affected |
References
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-38297.json
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-39293.json
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-41771.json
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-41772.json
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-23772.json
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-23773.json
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-23806.json
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-38297
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2022-1819.html
- github.com https://github.com/golang/go/issues/48797
Show all 21 references
- groups.google.com https://groups.google.com/forum/#%21forum/golang-announce
- groups.google.com https://groups.google.com/g/golang-announce/c/AEBu9j7yj5A
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-38297.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-1819.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4OFS3M3OFB24SWPTIAPARKGPUMQVUY6Z/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ON7BQRRJZBOR5TJHURBAB3WLF4YXFC6Z/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-38297
- security.gentoo.org https://security.gentoo.org/glsa/202208-02
- security.netapp.com https://security.netapp.com/advisory/ntap-20211118-0006/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-38297
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.