VDB
Sign up
MEDIUM5.5

GO-2024-2888

Mishandling of corrupt central directory record in archive/zip

Quick fix

GO-2024-2888 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.21.11

Details

The archive/zip package's handling of certain types of invalid zip files differs from the behavior of most zip implementations. This misalignment could be exploited to create an zip file with contents that vary depending on the implementation reading the file. The archive/zip package now rejects files containing these errors.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.21.11
Fixgo get stdlib@v1.21.11

References