CVE-2021-27919
JSON

5.5medium

Panic when opening archives in archive/zip

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
1.52% (higher than 75% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GO-2021-0067BIT-GOLANG-2021-27919

Description

archive/zip in Go 1.16.x before 1.16.1 allows attackers to cause a denial of service (panic) upon attempted use of the Reader.Open API for a ZIP archive in which ../ occurs at the beginning of any filename.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
stdlib (Go)from 1.16.0-0 before 1.16.1Go Vulnerability Database
golang gofrom 1.16.0 before 1.16.1NVD
fedoraproject fedora34, 35NVD
golang (Bitnami)from 1.16.0 before 1.16.1Bitnami Vulnerability Database

All scores

NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasemedium rating

What each source says

CVE List

archive/zip in Go 1.16.x before 1.16.1 allows attackers to cause a denial of service (panic) upon attempted use of the Reader.Open API for a ZIP archive in which ../ occurs at the beginning of any filename.

Go Vulnerability Database

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.

NVD (es)

archive/zip en Go versiones 1.16.x anteriores a 1.16.1, permite a atacantes causar una denegación de servicio (pánico) al intentar usar la API Reader.Open para un archivo ZIP en el que ../ aparece al principio de cualquier nombre de archivo

References

Sources

SourceRecordLicence
CVE ListCVE-2021-27919 changed 2024-08-03CVE Terms of Use
Go Vulnerability DatabaseGO-2021-0067 changed 2024-05-20CC-BY-4.0
NVDCVE-2021-27919 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2021-27919 changed 2026-09-08Apache-2.0