PT-2021-6463 · Go+6 · Archive/Zip+6

Emmanuel Odeke

·

Published

2021-02-19

·

Updated

2024-06-15

·

CVE-2021-33196

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions archive/zip in Go versions prior to 1.15.13 archive/zip in Go versions 1.16.x prior to 1.16.5
Description The issue is related to the lack of checking the number of files in an archive, which can be exploited by a remote attacker to cause a denial of service using a crafted archive file. Specifically, a crafted file count in an archive's header can cause a NewReader or OpenReader panic. This can lead to excessive memory allocation attempts. The problem occurs when reading an archive that claims to contain a large number of files, regardless of its actual size, potentially causing a panic or an unrecoverable fatal error.
Recommendations For archive/zip in Go versions prior to 1.15.13, update to version 1.15.13 or later. For archive/zip in Go versions 1.16.x prior to 1.16.5, update to version 1.16.5 or later. As a temporary workaround, consider restricting the use of the NewReader and OpenReader functions when dealing with archives from untrusted sources until a patch is applied.

Exploit

Fix

Resource Exhaustion

RCE

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2022:1819
ALT-PU-2021-1376
ALT-PU-2021-1936
ALT-PU-2021-1940
ALT-PU-2021-1941
AZL-79084
BDU:2022-01685
BIT-GOLANG-2021-33196
CESA-2021_3076
CVE-2021-33196
DLA-2891-1
DLA-2892-1
DLA-3395-1
DLA-3395-2
GO-2021-0240
MGASA-2021-0369
OESA-2021-1402
OPENSUSE-SU-2021:0950-1
OPENSUSE-SU-2021:2186-1
OPENSUSE-SU-2021:2214-1
OPENSUSE-SU-2021_0950-1
OPENSUSE-SU-2021_2186-1
OPENSUSE-SU-2021_2214-1
OPENSUSE-SU-2024:10808-1
OPENSUSE-SU-2024:10809-1
RHSA-2021:2634
RHSA-2021:2704
RHSA-2021:2984
RHSA-2021:3076
RHSA-2021:3555
RHSA-2021:3758
RHSA-2021_3076
RLSA-2021:3076
SUSE-SU-2021:2186-1
SUSE-SU-2021:2214-1

Affected Products

Alt Linux
Astra Linux
Centos
Red Hat
Rocky Linux
Suse
Archive/Zip