Reader.Read does not set a limit on the maximum size of...
High severity
Unreviewed
Published
Oct 14, 2022
to the GitHub Advisory Database
•
Updated Dec 4, 2023
Description
Published by the National Vulnerability Database
Oct 14, 2022
Published to the GitHub Advisory Database
Oct 14, 2022
Last updated
Dec 4, 2023
Reader.Read does not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. After fix, Reader.Read limits the maximum size of header blocks to 1 MiB.
References