GO-2021-0067
Panic when opening archives in archive/zip
At a glance
- Published
- Updated
- CVE
- CVE-2021-27919
- Aliases
- BIT-golang-2021-27919
Description
Using Reader.Open on an archive containing a file with a path prefixed by "../" will cause a panic due to a stack overflow. If parsing user supplied archives, this may be used as a denial of service vector.
Affected packages
| Package | Versions |
|---|---|
| Go · stdlib | introduced 1.16.0-0, fixed 1.16.1 |
References
- https://go.dev/cl/300489 FIX
- https://go.googlesource.com/go/+/cd3b4ca9f20fd14187ed4cdfdee1a02ea87e5cd8 FIX
- https://go.dev/issue/44916 REPORT
- https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw/m/zzhWj5jPAQAJ WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |