ADVISORIES

Go Vulnerability Database

GO-2024-2888

Mishandling of corrupt central directory record in archive/zip

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.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.21.11 (fixed in 1.21.11)
From 1.22.0-0 before 1.22.4 (fixed in 1.22.4)

References