Skip to content
OpenAdvisories
Unscored Public exploit CVE-2021-38297 BIT-golang-2021-38297EUVD-2021-24753GHSA-xv38-944c-p763GO-2022-0247

Buffer overflow in WASM modules in misc/wasm and cmd/link

Published Oct 18, 2021 · Updated Aug 4, 2024 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 golang-1.15 1.15.15-1~deb11u2 —
Debian 10 golang-1.11 1.11.6-1+deb10u6 DLA-3395-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS golang-1.13 +1 No fix yet —
Ubuntu 18.04 LTS golang-1.8 +1 No fix yet —
Ubuntu 16.04 LTS golang-1.6 +1 No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS golang-1.13 No fix yet —
Ubuntu Pro 20.04 LTS golang-1.16 No fix yet —
Ubuntu Pro 18.04 LTS golang-1.13 +1 No fix yet —
Ubuntu Pro 16.04 LTS golang-1.13 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 delve 1.7.2-1.module+el8.6.0+12972+ebab5911 RHSA-2022:1819
RHEL 8 golang +7 1.17.7-1.module+el8.6.0+14297+32a15e19 RHSA-2022:1819
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Serverless 1 openshift-serverless-clients 0.26.0-2.el8 RHSA-2022:0432

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 delve 1.7.2-1.module_el8.6.0+2736+ec10aba8 ALSA-2022:1819
AlmaLinux 8 golang +7 1.17.7-1.module_el8.6.0+2736+ec10aba8 ALSA-2022:1819

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 delve 1.7.2-1.module+el8.6.0+824+8e984c20 RLSA-2022:1819
Rocky Linux 8 golang +1 1.17.7-1.module+el8.6.0+824+8e984c20 RLSA-2022:1819
ReleasePackageFixed inAdvisory
SLES 15 SP4 google-guest-agent 20230221.00-150000.1.34.1 SUSE-SU-2023:0600-1
SLES 15 SP4 google-osconfig-agent 20230222.00-150000.1.27.1 SUSE-SU-2023:0602-1
SLES 15 SP3 go1.16 1.16.9-1.29.1 SUSE-SU-2021:3487-1
SLES 15 SP3 go1.17 1.17.2-1.6.2 SUSE-SU-2021:3488-1
SLES 15 SP3 google-guest-agent 20230221.00-150000.1.34.1 SUSE-SU-2023:0600-1
SLES 15 SP3 google-osconfig-agent 20230222.00-150000.1.27.1 SUSE-SU-2023:0602-1
SLES 15 SP2 go1.16 1.16.9-1.29.1 SUSE-SU-2021:3487-1
SLES 15 SP2 go1.17 1.17.2-1.6.2 SUSE-SU-2021:3488-1
SLES 15 SP2 google-guest-agent 20230221.00-150000.1.34.1 SUSE-SU-2023:0600-1
SLES 15 SP2 google-osconfig-agent 20230222.00-150000.1.27.1 SUSE-SU-2023:0602-1
SLES 15 SP1 google-guest-agent 20230221.00-150000.1.34.1 SUSE-SU-2023:0600-1
SLES 15 SP1 google-osconfig-agent 20230222.00-150000.1.27.1 SUSE-SU-2023:0602-1
SLES 12 google-guest-agent 20230221.00-1.29.1 SUSE-SU-2023:0603-1
SLES 12 google-osconfig-agent 20230222.00-1.20.1 SUSE-SU-2023:0601-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.16 1.16.9-1.1 openSUSE-SU-2024:11567-1
openSUSE Tumbleweed go1.17 1.17.2-1.1 openSUSE-SU-2024:11568-1
openSUSE Tumbleweed google-guest-agent 20230221.00-2.1 openSUSE-SU-2024:12758-1
openSUSE Tumbleweed google-osconfig-agent 20230222.00-2.1 openSUSE-SU-2024:12759-1
openSUSE Leap 15.4 google-guest-agent 20230221.00-150000.1.34.1 SUSE-SU-2023:0600-1
openSUSE Leap 15.4 google-osconfig-agent 20230222.00-150000.1.27.1 SUSE-SU-2023:0602-1
openSUSE Leap 15.3 go1.16 1.16.9-1.29.1 openSUSE-SU-2021:3487-1
openSUSE Leap 15.3 go1.17 1.17.2-1.6.2 openSUSE-SU-2021:3488-1
openSUSE Leap 15.2 go1.16 1.16.9-lp152.14.1 openSUSE-SU-2021:1420-1
ReleasePackageFixed inAdvisory
Alpine v3.24 go 1.17.2-r0 —
Alpine v3.23 go 1.17.2-r0 —
Alpine v3.22 go 1.17.2-r0 —
Alpine v3.21 go 1.17.2-r0 —
Alpine v3.20 go 1.17.2-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 go 1.17.2-r0 —
Alpine v3.18 go 1.17.2-r0 —
Alpine v3.17 go 1.17.2-r0 —
Alpine v3.16 go 1.17.2-r0 —
Alpine v3.15 go 1.17.2-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 golang +7 1.19.3-2.amzn2023.0.2 ALAS2023-2023-048
Amazon Linux 2 golang +7 1.16.15-1.amzn2.0.1 ALAS2-2022-1776

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) golang 1.17.8-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 delve 1.7.2-1.0.1.module+el8.6.0+20559+3b94dc2a ELSA-2022-1819
Oracle Linux 8 golang +7 1.17.7-1.module+el8.6.0+20559+3b94dc2a ELSA-2022-1819

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go toolchain < 1.16.9 · >= 1.17.0-0, < 1.17.2 1.16.9, 1.17.2 GO-2022-0247

Advisories 23

References