CVE-2024-24789: Mishandling of corrupt central directory record in archive/zip
CVE-2024-24789 affects 176 listed versions of Go in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Go
176 of 250 listed versions are affected. Fixed in 1.22.4, 1.21.11. The newest release, 1.27.4, is not affected.
1.22.3 1.22.2 1.22.1 1.22.0 1.21.10 1.21.9 1.21.8 1.21.7 1.21.6 1.21.5 1.21.4 1.21.3 1.21.2 1.21.1 1.21.0 1.21.0-rc3 1.20.14 1.20.13 1.20.12 1.20.11 1.20.10 1.20.9 1.20.8 1.20.7 1.20.6 1.20.5 1.20.4 1.20.3 1.20.2 1.20.1 1.20.0 1.19.13 1.19.12 1.19.11 1.19.10 1.19.9 1.19.8 1.19.7 1.19.6 1.19.5 1.19.4 1.19.3 1.19.2 1.19.1 1.19.0 1.19.0-rc2 1.18.10 1.18.9 1.18.8 1.18.7 1.18.6 1.18.5 1.18.4 1.18.3 1.18.2 1.18.1 1.18 1.17.13 1.17.12 1.17.11 and 116 more
What it is
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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N (NVD)
Published by Go on 5 June 2024. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2024-24789 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.