5.3Medium

CVE-2024-24789Mishandling of corrupt central directory record in archive/zip

Go standard library archive/zip; golang go Published: (2 years ago)

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.

Weakness (CWE): CWE-390

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library archive/zip < 1.21.11, 1.22.0-0 – < 1.22.4
golang go < 1.21.11, 1.22.0 – < 1.22.4

References and patches