PT-2022-10892 · Go+6 · Go+6
Emmanuel Odeke
·
Published
2021-09-13
·
Updated
2024-06-15
·
CVE-2021-39293
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Go versions prior to 1.16.8
Go versions 1.17.x prior to 1.17.1
Description
The issue arises from a crafted archive header that falsely designates a large number of files, causing the NewReader or OpenReader functions in archive/zip to panic. This is due to an incomplete fix for a previous issue. The NewReader and OpenReader functions can cause a panic or an unrecoverable fatal error when reading an archive that claims to contain a large number of files, regardless of its actual size.
Recommendations
For Go versions prior to 1.16.8, update to version 1.16.8 or later.
For Go versions 1.17.x prior to 1.17.1, update to version 1.17.1 or later.
As a temporary workaround, consider restricting the use of the NewReader and OpenReader functions in archive/zip until a patch is available.
Exploit
Fix
Allocation of Resources Without Limits
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Centos
Go
Red Hat
Rocky Linux
Suse