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
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).