CVE-2021-38297: Buffer Overflow

Published Oct 7, 2021
·
Updated

A flaw was found in golang. This vulnerability can only be triggered when invoking functions from vulnerable WASM (WebAssembly) Modules. Go can be compiled to WASM. If the product or service doesn't use WASM functions, it is not affected, although it uses golang.

Other sources

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.

Golang Go is vulnerable to a buffer overflow, caused by improper bounds checking when invoking functions from WASM modules. By passing very large arguments, a remote attacker could overflow a buffer and execute arbitrary code on the system.

IBM

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.

If using wasmexec.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.

References:

https://github.com/golang/go/issues/48797 https://groups.google.com/g/golang-announce/c/AEBu9j7yj5A

Red Hat

Affected Software

9 affected componentsFixes available
redhat/openshift-serverless-clients<0:0.26.0-2.el8
0:0.26.0-2.el8
redhat/go<1.17.2
1.17.2
redhat/go<1.16.9
1.16.9
IBM Cloud Pak for Security<=1.10.0.0 - 1.10.11.0
IBM QRadar Suite Software<=1.10.12.0 - 1.10.16.0
Golang Go<1.16.9
Golang Go>=1.17.0<1.17.2
Fedoraproject Fedora=34
Fedoraproject Fedora=35

Remediation

Information

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Event History

Oct 7, 2021
CVE Published
12:00 AM
Oct 11, 2021
Data Sourced
via Red Hat·02:23 PM
DescriptionSeverityAffected Software
Oct 18, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-38297?

CVE-2021-38297 is a vulnerability in Go before version 1.16.9 and 1.17.x before version 1.17.2 that allows a buffer overflow via large arguments in a function.

2

How does this vulnerability affect golang?

This vulnerability affects golang when invoking functions from vulnerable WASM (WebAssembly) modules. If the product or service does not use WASM functions, it is not affected.

3

What is the severity of CVE-2021-38297?

CVE-2021-38297 has a severity rating of critical with a value of 9.

4

What is the remedy for CVE-2021-38297?

The remedy for CVE-2021-38297 is to update to version 1.16.9 or 1.17.2 of golang.

5

Where can I find more information about CVE-2021-38297?

You can find more information about CVE-2021-38297 in the provided references: [CVE.org](https://www.cve.org/CVERecord?id=CVE-2021-38297), [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-38297), [Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=2012887), [Red Hat Security Advisory](https://access.redhat.com/errata/RHSA-2022:0434).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203