CVE-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…
Noroxi assessment
Priority: Plan (action score 42/100)
- Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 10.9% (FIRST EPSS); higher than 95.9% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: delve (AlmaLinux:8) 1.7.2-1.module_el8.6.0+2736+ec10aba8; go-toolset (AlmaLinux:8) 1.17.7-1.module_el8.6.0+2736+ec10aba8; golang (AlmaLinux:8) 1.17.7-1.module_el8.6.0+2736+ec10aba8.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Add it to your regular patch cycle. Upgrade to delve (AlmaLinux:8) 1.7.2-1.module_el8.6.0+2736+ec10aba8; go-toolset (AlmaLinux:8) 1.17.7-1.module_el8.6.0+2736+ec10aba8; golang (AlmaLinux:8) 1.17.7-1.module_el8.6.0+2736+ec10aba8 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- ALSA-2022:1819
- DLA-3395-1
- GO-2022-0247
- openSUSE-SU-2021:1420-1
- openSUSE-SU-2021:3487-1
- openSUSE-SU-2021:3488-1
- openSUSE-SU-2024:11567-1
- openSUSE-SU-2024:11568-1
- openSUSE-SU-2024:12758-1
- openSUSE-SU-2024:12759-1
- RHSA-2022:0432
- RHSA-2022:1819
- RLSA-2022:1819
- SUSE-SU-2021:3487-1
- SUSE-SU-2021:3488-1
- SUSE-SU-2023:0600-1
- SUSE-SU-2023:0601-1
- SUSE-SU-2023:0602-1
- SUSE-SU-2023:0603-1
- Published
- Oct 18, 2021
- Updated
- Jun 17, 2026
- EPSS
- 10.9% · 95th percentile
- CWE
- CWE-120
Report tools
Action score
42
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 3 / 30 · 10.9%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| golang | go | cpe:2.3:a:golang:go |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora34
- fedoraproject fedora35
- golang gobefore 1.16.9
- golang go1.17.0 and later · before 1.17.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | delve | before 1.7.2-1.module_el8.6.0+2736+ec10aba8 | 1.7.2-1.module_el8.6.0+2736+ec10aba8 |
| AlmaLinux:8 | go-toolset | before 1.17.7-1.module_el8.6.0+2736+ec10aba8 | 1.17.7-1.module_el8.6.0+2736+ec10aba8 |
| AlmaLinux:8 | golang | before 1.17.7-1.module_el8.6.0+2736+ec10aba8 | 1.17.7-1.module_el8.6.0+2736+ec10aba8 |
| AlmaLinux:8 | golang-bin | before 1.17.7-1.module_el8.6.0+2736+ec10aba8 | 1.17.7-1.module_el8.6.0+2736+ec10aba8 |
| AlmaLinux:8 | golang-docs | before 1.17.7-1.module_el8.6.0+2736+ec10aba8 | 1.17.7-1.module_el8.6.0+2736+ec10aba8 |
| AlmaLinux:8 | golang-misc | before 1.17.7-1.module_el8.6.0+2736+ec10aba8 | 1.17.7-1.module_el8.6.0+2736+ec10aba8 |
| AlmaLinux:8 | golang-race | before 1.17.7-1.module_el8.6.0+2736+ec10aba8 | 1.17.7-1.module_el8.6.0+2736+ec10aba8 |
| AlmaLinux:8 | golang-src | before 1.17.7-1.module_el8.6.0+2736+ec10aba8 | 1.17.7-1.module_el8.6.0+2736+ec10aba8 |
| AlmaLinux:8 | golang-tests | before 1.17.7-1.module_el8.6.0+2736+ec10aba8 | 1.17.7-1.module_el8.6.0+2736+ec10aba8 |
| Alpine:v3.15 | go | from 1.17.0 · before 1.17.2-r0 | 1.17.2-r0 |
| Debian:10 | golang-1.11 | before 1.11.6-1+deb10u6 | 1.11.6-1+deb10u6 |
| Debian:11 | golang-1.15 | before 1.15.15-1~deb11u2 | 1.15.15-1~deb11u2 |
| Go | toolchain | from 1.17.0-0 · before 1.17.2 | 1.17.2 |
| Go | toolchain | before 1.16.9 | 1.16.9 |
| openSUSE:Leap 15.2 | go1.16 | before 1.16.9-lp152.14.1 | 1.16.9-lp152.14.1 |
| openSUSE:Leap 15.3 | go1.16 | before 1.16.9-1.29.1 | 1.16.9-1.29.1 |
| openSUSE:Leap 15.3 | go1.17 | before 1.17.2-1.6.2 | 1.17.2-1.6.2 |
| openSUSE:Leap 15.4 | google-guest-agent | before 20230221.00-150000.1.34.1 | 20230221.00-150000.1.34.1 |
| openSUSE:Leap 15.4 | google-osconfig-agent | before 20230222.00-150000.1.27.1 | 20230222.00-150000.1.27.1 |
| openSUSE:Tumbleweed | go1.16 | before 1.16.9-1.1 | 1.16.9-1.1 |
| openSUSE:Tumbleweed | go1.17 | before 1.17.2-1.1 | 1.17.2-1.1 |
| openSUSE:Tumbleweed | google-guest-agent | before 20230221.00-2.1 | 20230221.00-2.1 |
| openSUSE:Tumbleweed | google-osconfig-agent | before 20230222.00-2.1 | 20230222.00-2.1 |
| Red Hat:enterprise_linux:8::appstream | delve | before 0:1.7.2-1.module+el8.6.0+12972+ebab5911 | 0:1.7.2-1.module+el8.6.0+12972+ebab5911 |
+20
Same product
golang: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-7187The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import path (get/vcs.go only…54Plan
- CVE-2018-16873In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag…52Plan
- CVE-2019-14809net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization bypass in some…42Plan
Published before and after this one in the same product
- ← EarlierCVE-2021-29923Aug 7, 2021 · Go before 1.17 does not properly consider extraneous zero characters at the beginning of an IP address octet, which (in some situations)…31Monitor
- ← EarlierCVE-2021-36221Aug 8, 2021 · Go before 1.15.15 and 1.16.x before 1.16.7 has a race condition that can lead to a net/http/httputil ReverseProxy panic upon an…24Monitor
- Later →CVE-2021-41771Nov 8, 2021 · ImportedSymbols in debug/macho (for Open or OpenFat) in Go before 1.16.10 and 1.17.x before 1.17.3 Accesses a Memory Location After the End…31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:delve | 1.7.2-1.module_el8.6.0+2736+ec10aba8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:go-toolset | 1.17.7-1.module_el8.6.0+2736+ec10aba8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:golang | 1.17.7-1.module_el8.6.0+2736+ec10aba8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:golang-bin | 1.17.7-1.module_el8.6.0+2736+ec10aba8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:golang-docs | 1.17.7-1.module_el8.6.0+2736+ec10aba8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:golang-misc | 1.17.7-1.module_el8.6.0+2736+ec10aba8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:golang-race | 1.17.7-1.module_el8.6.0+2736+ec10aba8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:golang-src | 1.17.7-1.module_el8.6.0+2736+ec10aba8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:golang-tests | 1.17.7-1.module_el8.6.0+2736+ec10aba8 · AlmaLinux:8 | Package registry (OSV) |
| alpine:go | 1.17.2-r0 · Alpine:v3.15 | Package registry (OSV) |
| debian:golang-1.11 | 1.11.6-1+deb10u6 · Debian:10 | Package registry (OSV) |
| debian:golang-1.15 | 1.15.15-1~deb11u2 · Debian:11 | Package registry (OSV) |
| Go:toolchain | 1.16.9 | Package registry (OSV) |
| Go:toolchain | 1.17.2 | Package registry (OSV) |
| opensuse:go1.16 | 1.16.9-lp152.14.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:go1.17 | 1.17.2-1.6.2 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:google-guest-agent | 20230221.00-150000.1.34.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:google-osconfig-agent | 20230222.00-150000.1.27.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| red hat:delve | 0:1.7.2-1.module+el8.6.0+12972+ebab5911 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:delve-debuginfo | 0:1.7.2-1.module+el8.6.0+12972+ebab5911 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:delve-debugsource | 0:1.7.2-1.module+el8.6.0+12972+ebab5911 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:go-toolset | 0:1.17.7-1.module+el8.6.0+14297+32a15e19 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:golang | 0:1.17.7-1.module+el8.6.0+14297+32a15e19 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:golang-bin | 0:1.17.7-1.module+el8.6.0+14297+32a15e19 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:golang-docs | 0:1.17.7-1.module+el8.6.0+14297+32a15e19 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:golang-misc | 0:1.17.7-1.module+el8.6.0+14297+32a15e19 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:golang-race | 0:1.17.7-1.module+el8.6.0+14297+32a15e19 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:golang-src | 0:1.17.7-1.module+el8.6.0+14297+32a15e19 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:golang-tests | 0:1.17.7-1.module+el8.6.0+14297+32a15e19 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:openshift-serverless-clients | 0:0.26.0-2.el8 · Red Hat:serverless:1.0::el8 | Package registry (OSV) |
+8
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×2
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:8 | 2023-11-15 |
| Proof-of-concept repository on GitHub | stars:0 | 2024-04-04 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+758 d
- TodayNov 16, 2026+1855 d
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0113 · Feb 4, 2022(RedHat Güvenlik Güncellemesi)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
When data is copied, the source length is not compared with the size of the destination buffer. Excess data overwrites adjacent memory.
The bug in code
The whole CWE-120 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
char buf[256];
memcpy(buf, pkt->data, pkt->len);Fixed
char buf[256];
if (pkt->len > sizeof(buf)) {
return -EINVAL;
}
memcpy(buf, pkt->data, pkt->len);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
- Overflow Variables and TagsCAPEC-46likelihood: High · High
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (6 more)Show less
- groups.google.com/g/golang-announce/c/AEBu9j7yj5A
- lists.debian.org/debian-lts-announce/2023/04/msg00021.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4OFS3M3OFB24SWPTIAPARKGPUMQVUY6Z/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ON7BQRRJZBOR5TJHURBAB3WLF4YXFC6Z/
- security.gentoo.org/glsa/202208-02
- security.netapp.com/advisory/ntap-20211118-0006/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.