What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Go 1.21.11, 1.22.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-24789 or the next vulnerability affects your stack