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

Published Jun 4, 2024
·
Updated

Last updated 14 November 2024

Other sources

Mishandling of corrupt central directory record in archive/zip

Microsoft

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.

Launchpad

Affected Software

12 affected componentsFixes available
Golang Go<1.21.11
Golang Go>=1.22.0<1.22.4
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19<=1.19.8-2
Microsoft cbl2 golang 1.22.7-3
redhat/go<1.22.4
1.22.4
redhat/go<1.21.11
1.21.11
Microsoft cbl2 msft-golang 1.24.1-2
Microsoft cbl2 msft-golang 1.22.4-1<1.22.4-1
1.22.4-1
Microsoft azl3 golang 1.22.3-1<1.22.3-1
1.22.3-1
Microsoft cbl2 golang 1.21.11-1<1.21.11-1
1.21.11-1
Microsoft cbl2 golang 1.18.8-8<1.18.8-8
1.18.8-8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/go to a version that resolves this vulnerability.

    Fixed in 1.22.4
  2. Upgrade

    Upgrade redhat/go to a version that resolves this vulnerability.

    Fixed in 1.21.11
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.22.4-1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.22.3-1
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.21.11-1
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.18.8-8
  7. Upgrade

    Upgrade Go to a version that resolves this vulnerability.

    Fixed in 1.22.4
  8. Upgrade

    Upgrade Go to a version that resolves this vulnerability.

    Fixed in 1.21.11

Event History

Jun 5, 2024
CVE Published
via MITRE·03:13 PM
Data Sourced
via MITRE·03:13 PM
DescriptionWeakness
Jun 17, 2024
Data Sourced
via Red Hat·04:55 PM
DescriptionSeverityAffected Software
Jul 9, 2024
Data Sourced
via Launchpad·03:35 PM
Description
Nov 15, 2024
Data Sourced
via Ubuntu·01:21 PM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·03:45 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·03:45 AM
DescriptionSeverity
Updated
via Microsoft·03:45 AM
Affected Software
Updated
via Microsoft·03:45 AM
SeverityAffected Software
Updated
via Microsoft·03:45 AM
Severity

Frequently Asked Questions

1

What is the severity of CVE-2024-24789?

CVE-2024-24789 is considered a moderate severity vulnerability due to its potential for exploitation through malformed zip files.

2

How can I fix CVE-2024-24789?

To fix CVE-2024-24789, update the Go package to version 1.22.4 or higher for Red Hat and Debian systems wherever applicable.

3

Which software versions are affected by CVE-2024-24789?

CVE-2024-24789 affects versions of Go prior to 1.22.4, including 1.21.11 for Red Hat and 1.15.15-1~deb11u4 and 1.19.8-2 for Debian.

4

What type of attacks can CVE-2024-24789 be used for?

CVE-2024-24789 could potentially be exploited to manipulate zip file content rendering inconsistencies based on the underlying ZIP implementation.

5

What implementations are primarily impacted by CVE-2024-24789?

CVE-2024-24789 primarily impacts the 'archive/zip' package in the Go programming language, differing from behavior in most other ZIP implementations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203