Closed
Description
Due to a pre-allocation optimization in zip.NewReader
, a malformed archive which indicates it has a significant number of files can cause either a panic or memory exhaustion.
This was originally discoverd by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=33912.
This is CVE-2021-33196.