CVE-2021-39293 Denial of service in n/a

High 7.5 Published Updated

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.

PackageAffectedFixed in
golang BitnamiAll versions1.16.8, 1.17.1
stdlib GoAll versions1.16.8, 1.17.1
Linux distribution packages (7)
go1.16 SUSE:Linux Enterprise Module for Development Tools 15 SP2All versions1.16.8-1.26.1
go1.17 SUSE:Linux Enterprise Module for Development Tools 15 SP2All versions1.17.1-1.3.1
go1.16 SUSE:Linux Enterprise Module for Development Tools 15 SP3All versions1.16.8-1.26.1
go1.17 SUSE:Linux Enterprise Module for Development Tools 15 SP3All versions1.17.1-1.3.1
go1.16 openSUSE:Leap 15.2All versions1.16.8-lp152.11.1
go1.16 openSUSE:Leap 15.3All versions1.16.8-1.26.1
go1.17 openSUSE:TumbleweedAll versions1.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.

All Golang Go vulnerabilities

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.

Is CVE-2021-39293 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free