CVE-2021-39293 Denial of service in n/a
A crafted zip archive header causes a panic in the Go standard library, leading to denial of service for applications using the archive/zip package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-39293?
CVE-2021-39293 is a high-severity denial of service vulnerability in Golang Go, published on 24 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In archive/zip in Go before 1.16.8 and 1.17.x before 1.17.1, a crafted archive header (falsely designating that many files are present) can cause a NewReader or OpenReader panic. NOTE: this issue exists because of an incomplete fix for CVE-2021-33196.
Weakness: CWE-770
Which versions are affected by CVE-2021-39293?
2 open source packages ship an affected version, including golang and stdlib. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
golang Bitnami | All versions | 1.16.8, 1.17.1 |
stdlib Go | All versions | 1.16.8, 1.17.1 |
Linux distribution packages (7)
go1.16 SUSE:Linux Enterprise Module for Development Tools 15 SP2 | All versions | 1.16.8-1.26.1 |
go1.17 SUSE:Linux Enterprise Module for Development Tools 15 SP2 | All versions | 1.17.1-1.3.1 |
go1.16 SUSE:Linux Enterprise Module for Development Tools 15 SP3 | All versions | 1.16.8-1.26.1 |
go1.17 SUSE:Linux Enterprise Module for Development Tools 15 SP3 | All versions | 1.17.1-1.3.1 |
go1.16 openSUSE:Leap 15.2 | All versions | 1.16.8-lp152.11.1 |
go1.16 openSUSE:Leap 15.3 | All versions | 1.16.8-1.26.1 |
go1.17 openSUSE:Tumbleweed | All versions | 1.17.1-1.1 |
Products include Golang Go, Netapp Cloud Insights Telegraf.
How do I fix CVE-2021-39293?
Upgrade golang to a fixed version for your release line: 1.16.8 or 1.17.1.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-39293 being exploited?
There is no known exploitation of CVE-2021-39293 in the wild and no public exploit code.
Other vulnerabilities in Golang Go
- CVE-2020-0601 Microsoft Windows CryptoAPI Spoofing
- CVE-2026-27143 Missing bound checks can lead to memory corruption in safe Go in cmd/compile
- CVE-2024-24790 Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip
- CVE-2023-39320 Arbitrary code execution via go.mod toolchain directive in cmd/go
- CVE-2023-24540 Improper handling of JavaScript whitespace in html/template
Sources
Also known as BIT-golang-2021-39293, DEBIAN-CVE-2021-39293, GHSA-j532-8pqq-78jr, GO-2022-0273, OESA-2022-1518, SUSE-RU-2021:3315-1 and 5 more.