Vulnerability · Published Jun 5, 2024 · Assigned by Go

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

Medium 5.3

In plain English

A medium-severity security flaw in archive/zip from Go standard library. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.4%top 61.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8aardvark-dns2:1.10.0-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux:8aardvark-dns2:1.10.0-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8aardvark-dns2:1.10.0-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8buildah2:1.33.8-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8buildah-tests2:1.33.8-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8cockpit-podman84.1-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8container-selinux2:2.229.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8containers-common2:1-82.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8crit3.18-5.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8crit3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8criu3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8criu3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8criu-devel3.18-5.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8criu-devel3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8criu-libs3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8criu-libs3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8crun1.14.3-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8crun1.14.3-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8delve1.21.2-3.module_el8.10.0+3760+4dd778f9ALSA-2024:4237
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3859+6ae70a0eALSA-2024:5258
AlmaLinux:8go-toolset1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9go-toolset1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-bin1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-bin1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-docs1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-docs1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-misc1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-misc1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-src1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-src1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-tests1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-tests1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8grafana9.2.10-17.el8_10ALSA-2024:5291
AlmaLinux:9grafana10.2.6-4.el9ALSA-2024:9115
AlmaLinux:8grafana-selinux9.2.10-17.el8_10ALSA-2024:5291
AlmaLinux:9grafana-selinux10.2.6-4.el9ALSA-2024:9115
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux:8podman4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-catatonit4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-docker4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-gvproxy4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-plugins4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-remote4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-tests4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8python3-criu3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8python3-podman4.9.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8runc1:1.1.12-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8skopeo2:1.14.5-3.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8skopeo-tests2:1.14.5-3.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8udica0.2.6-21.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
Alpine:v3.21forgejo7.0.4-r0ALPINE-CVE-2024-24789
Alpine:v3.22forgejo7.0.4-r0ALPINE-CVE-2024-24789
Alpine:v3.23forgejo7.0.4-r0ALPINE-CVE-2024-24789
Alpine:v3.24forgejo7.0.4-r0ALPINE-CVE-2024-24789
Alpine:v3.20go1.22.4-r0ALPINE-CVE-2024-24789
Alpine:v3.21go1.22.4-r0ALPINE-CVE-2024-24789
Alpine:v3.22go1.22.4-r0ALPINE-CVE-2024-24789
Alpine:v3.23go1.22.4-r0ALPINE-CVE-2024-24789
Alpine:v3.24go1.22.4-r0ALPINE-CVE-2024-24789
Debian:12golang-1.19no fix listedDEBIAN-CVE-2024-24789
Gostdlib1.21.11, 1.22.4GO-2024-2888
Rocky Linux:8aardvark-dns2:1.10.0-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8buildah2:1.33.8-4.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8conmon3:2.1.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8container-selinux2:2.229.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8containernetworking-plugins1:1.4.0-5.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8containers-common2:1-82.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8criu0:3.18-5.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8crun0:1.14.3-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8delve0:1.21.2-3.module+el8.10.0+1814+f68f8a63RLSA-2024:4237
Rocky Linux:8fuse-overlayfs0:1.13-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8go-toolset0:1.21.11-1.module+el8.10.0+1831+fc70fba6RLSA-2024:4237
Rocky Linux:8golang0:1.21.11-1.module+el8.10.0+1831+fc70fba6RLSA-2024:4237
Rocky Linux:9golang0:1.21.11-1.el9_4RLSA-2024:4212
Rocky Linux:8grafana0:9.2.10-17.el8_10RLSA-2024:5291
Rocky Linux:8libslirp0:4.4.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8netavark2:1.10.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8oci-seccomp-bpf-hook0:1.2.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8podman4:4.9.4-12.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:9podman4:5.2.2-13.el9_5RLSA-2024:9102
Rocky Linux:8python-podman0:4.9.0-2.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8runc1:1.1.12-4.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8skopeo2:1.14.5-3.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8slirp4netns0:1.2.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8toolbox0:0.0.99.5-2.module+el8.10.0+1815+5fe7415e.rocky.0.2.rocky.0.2RLSA-2024:5258
Rocky Linux:8udica0:0.2.6-21.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Ubuntu:22.04:LTSgolang-1.171.17.13-3ubuntu1.3UBUNTU-CVE-2024-24789
Ubuntu:22.04:LTSgolang-1.171.17.13-3ubuntu1.3USN-7111-1
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.2USN-7109-1
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.2UBUNTU-CVE-2024-24789
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2024-24789
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.3USN-6886-1
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.3UBUNTU-CVE-2024-24789
Ubuntu:24.04:LTSgolang-1.211.21.9-1ubuntu0.1USN-6886-1
Ubuntu:24.04:LTSgolang-1.211.21.9-1ubuntu0.1UBUNTU-CVE-2024-24789
Ubuntu:22.04:LTSgolang-1.221.22.2-2~22.04.1USN-6886-1
Ubuntu:22.04:LTSgolang-1.221.22.2-2~22.04.1UBUNTU-CVE-2024-24789
Ubuntu:24.04:LTSgolang-1.221.22.2-2ubuntu0.1UBUNTU-CVE-2024-24789
Ubuntu:24.04:LTSgolang-1.221.22.2-2ubuntu0.1USN-6886-1

Affected products (as reported)

VendorProductVersions
Go standard library archive/zip 0 – before 1.21.111.22.0-0 – before 1.22.4

References