CVE-2024-24789
JSON

5.3medium

Mishandling of corrupt central directory record in archive/zip

Severity
5.3medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.44% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2024-2888BIT-GOLANG-2024-24789

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

Product or packageVersionsReported by
archive/zipbefore 1.21.11, from 1.22.0-0 before 1.22.4CVE List
golang gobefore 1.21.11, from 1.22.0 before 1.22.4CVE List, NVD
stdlib (Go)before 1.21.11, from 1.22.0-0 before 1.22.4Go Vulnerability Database
golang (Bitnami)before 1.21.11, from 1.22.0-0 before 1.22.4Bitnami Vulnerability Database

All scores

CISA-ADP5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-390

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El manejo que hace el paquete archive/zip de ciertos tipos de archivos zip no válidos difiere del comportamiento de la mayoría de las implementaciones zip. Esta desalineación podría aprovecharse para crear un archivo zip con contenidos que varían según la implementación que lea el archivo. El paquete archive/zip ahora rechaza los archivos que contienen estos errores.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-24789 changed 2025-02-13CVE Terms of Use
Go Vulnerability DatabaseGO-2024-2888 changed 2026-03-23CC-BY-4.0
NVDCVE-2024-24789 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2024-24789 changed 2026-09-10Apache-2.0