Mishandling of corrupt central directory record in archive/zip
CVE-2024-24789Published 5 Jun 2024, 15:13 UTC
Real-world risk
1.0/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.3
scored by CISA, CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from Go)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| GoUbiquitous | < 1.21.11; >= 1.22.0, < 1.22.4 | 1.21.11, 1.22.4 |
| archive/zipNiche | < 1.21.11; >= 1.22.0-0, < 1.22.4 | 1.21.11, 1.22.4 |
What to do
Update to a fixed version: 1.21.11, 1.22.4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- CISA SSVC: proof of concept
EPSS 0.4% chance of exploitation in 30 days (percentile 40), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.350
- Threat T3: Public proof of concept0.950
- 10 × impact 0.3 × prerequisites 0.35 × threat 0.950.997
- Rounded to one decimal between 0.1 and 101.0
Exploitation and evidence timeline
- 5 Jun 2024 Published
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 1.0 (cvss fallback)
Weakness
CWE-390
References
- https://go.dev/cl/585397x-transferred
- https://go.dev/issue/66869x-transferred
- https://groups.google.com/g/golang-announce/c/XbxouI9gY7k/m/TuoGEhxIEwAJx-transferred
- https://pkg.go.dev/vuln/GO-2024-2888x-transferred
- http://www.openwall.com/lists/oss-security/2024/06/04/1x-transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/U5YAEIA6IUHUNGJ7AIXXPQT6D2GYENX7/x-transferred
- https://security.netapp.com/advisory/ntap-20250131-0008/
- CVE-2024-24789 on CVE.org