GO-2024-2888

Mishandling of corrupt central directory record in archive/zip

At a glance

Published
Updated
CVE
CVE-2024-24789
Aliases
BIT-golang-2024-24789

Description

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

PackageVersions
Go · stdlibintroduced 0, fixed 1.21.11, introduced 1.22.0-0, fixed 1.22.4

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database