Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-24789
Go vulnerability analysis and mitigation

Overview

The archive/zip package in Go versions prior to 1.21.11 and from 1.22.0 before 1.22.4 contains a vulnerability in handling certain types of invalid zip files. The vulnerability was discovered by Yufan You (@ouuan) and was assigned CVE-2024-24789. The issue was publicly disclosed on June 4, 2024, when Go versions 1.22.4 and 1.21.11 were released with fixes (Golang Announce).

Technical details

The vulnerability stems from the archive/zip package's handling of corrupt central directory records, where its behavior differs from most other ZIP implementations. The issue specifically relates to how the package processes EOCDR (End of Central Directory Record) with bogus comment length fields. Instead of rejecting invalid files, the package would skip EOCDR with bogus comment length and continue searching for the next one (Go Issue).

Impact

This misalignment in implementation behavior could be exploited to create ZIP files with contents that vary depending on the implementation reading the file. The vulnerability has been assigned a CVSS score of 5.5 (Medium) with the vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N, indicating potential for data integrity impacts (Ubuntu CVE).

Exploitability

The vulnerability can be exploited by creating specially crafted ZIP files that take advantage of the implementation differences. A proof of concept has been demonstrated where the same ZIP file could reveal different contents when processed by different implementations, potentially hiding malicious content from security tools while making it accessible to the vulnerable Go implementation (Go Issue).

Mitigation and workarounds

The vulnerability has been fixed in Go versions 1.21.11 and 1.22.4. The fix involves modifying the archive/zip package to reject files containing these errors instead of attempting to process them. Users are advised to upgrade to these patched versions (Golang Announce).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

golang-1.19

Affected

bullseye

golang-1.15

Affected

SourceThis report was generated using AI

Related Go vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56865HIGH8.4
  • Go logoGo
  • volume-modifier-for-k8s-fips
NoYesAug 13, 2026
CVE-2026-56864HIGH7.5
  • Go logoGo
  • http-echo
NoYesAug 13, 2026
CVE-2026-56862HIGH7.5
  • Go logoGo
  • kube-state-metrics-2.6
NoYesAug 13, 2026
CVE-2026-56859HIGH7.5
  • Go logoGo
  • fluxcd-helm-controller-fips
NoYesAug 13, 2026
CVE-2026-56860MEDIUM5.9
  • Go logoGo
  • vcluster-fips
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management