Advisory

GO-2024-2888

Also known as: BIT-golang-2024-24789, CVE-2024-24789

Summary

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.

Severity

Not rated by the source.

Dates

Published
2024-06-04 22:48 UTC
Modified
2026-03-23 05:00 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.21.11, introduced 1.22.0-0, fixed 1.22.4 (semver)

Fixed versions

1.21.11, 1.22.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences