CVE-2021-27919 Path traversal in n/a

Medium 5.5 Published Updated

Attackers can cause a denial of service via panic in Go's zip reader when processing archives with path traversal sequences in filenames.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-27919?

CVE-2021-27919 is a medium-severity path traversal vulnerability in Fedoraproject Fedora, published on 11 Mar 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

archive/zip in Go 1.16.x before 1.16.1 allows attackers to cause a denial of service (panic) upon attempted use of the Reader.Open API for a ZIP archive in which ../ occurs at the beginning of any filename.

Which versions are affected by CVE-2021-27919?

2 open source packages ship an affected version, including golang and stdlib. It affects 2 products.

PackageAffectedFixed in
golang BitnamiFrom 1.16.01.16.1
stdlib GoFrom 1.16.0-01.16.1

Products include Fedoraproject Fedora, Golang Go.

How do I fix CVE-2021-27919?

Upgrade golang to 1.16.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-27919 being exploited?

There is no known exploitation of CVE-2021-27919 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-golang-2021-27919, GHSA-v7gg-6p99-5jxq, GO-2021-0067, UBUNTU-CVE-2021-27919.

Is CVE-2021-27919 in your software?

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

Check your SBOMs for free