VDB
Sign up
MEDIUM5.5

GO-2021-0067

Panic when opening archives in archive/zip

Quick fix

GO-2021-0067 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.16.1

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 1.16.0-0Fixed in: 1.16.1
Fixgo get stdlib@v1.16.1

References