CVE-2021-41772: Input Validation
A vulnerability was found in archive/zip of the Go standard library. Applications written in Go where Reader.Open (the API implementing io/fs.FS introduced in Go 1.16) can panic when parsing a crafted ZIP archive containing completely invalid names or an empty filename argument.
Other sources
Go before 1.16.10 and 1.17.x before 1.17.3 allows an archive/zip Reader.Open panic via a crafted ZIP archive containing an invalid name or an empty filename field.
Golang Go is vulnerable to a denial of service, caused by an out-of-bounds slice situation in the Reader.Open function. By using a specially-crafted ZIP archive containing an invalid name or an empty filename field, a remote attacker could exploit this vulnerability to cause a panic, and results in a denial of service condition.
— IBM
Reader.Open (the API implementing io/fs.FS introduced in Go 1.16) can be made to panic by an attacker providing either a crafted ZIP archive containing completely invalid names or an empty filename argument.
Reference: https://github.com/golang/go/issues/48085
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/openshift-serverless-clientsto a version that resolves this vulnerability.Fixed in 0:1.1.0-2.el8 - Upgrade
Upgrade
redhat/go-toolsetto a version that resolves this vulnerability.Fixed in 1.16-0:1.16.12-1.el7_9 - Upgrade
Upgrade
redhat/go-toolsetto a version that resolves this vulnerability.Fixed in 1.16-golang-0:1.16.12-1.el7_9 - Upgrade
Upgrade
redhat/openshiftto a version that resolves this vulnerability.Fixed in 0:4.10.0-202202250816.p0.ge419edf.assembly.stream.el8 - Upgrade
Upgrade
redhat/openshift-clientsto a version that resolves this vulnerability.Fixed in 0:4.10.0-202202160023.p0.gf93da17.assembly.stream.el7 - Upgrade
Upgrade
redhat/goto a version that resolves this vulnerability.Fixed in 1.16.10 - Upgrade
Upgrade
redhat/goto a version that resolves this vulnerability.Fixed in 1.17.3 - Upgrade
Upgrade
alpine/goto a version that resolves this vulnerability.Fixed in 1.16.10-r0 - Upgrade
Upgrade
alpine/goto a version that resolves this vulnerability.Fixed in 1.17.3-r0
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID of this vulnerability?
The vulnerability ID is CVE-2021-41772.
What is the severity of CVE-2021-41772?
The severity of CVE-2021-41772 is high (7.5).
Which versions of Go are affected by CVE-2021-41772?
Go versions before 1.16.10 and 1.17.x before 1.17.3 are affected by CVE-2021-41772.
How can applications written in Go be affected by CVE-2021-41772?
Applications written in Go, where Reader.Open (the API implementing io/fs.FS introduced in Go 1.16), can panic when parsing a crafted ZIP archive containing completely invalid names or an empty filename argument.
Are there any references available for CVE-2021-41772?
Yes, you can refer to the following links for more information on CVE-2021-41772: [link1](https://github.com/golang/go/issues/48085), [link2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2020737), [link3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2020739).