CVE-2020-27833 Path traversal in openshift/oc

High 7.1 Published Updated

A Zip Slip vulnerability in the OpenShift CLI allows arbitrary file writes via crafted tarballs, leading to code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2020-27833?

CVE-2020-27833 is a high-severity path traversal vulnerability in Redhat Openshift Container Platform, published on 14 May 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A Zip Slip vulnerability was found in the oc binary in openshift-clients where an arbitrary file write is achieved by using a specially crafted raw container image (.tar file) which contains symbolic links. The vulnerability is limited to the command `oc image extract`. If a symbolic link is first created pointing within the tarball, this allows further symbolic links to bypass the existing path check. This flaw allows the tarball to create links outside the tarball's parent directory, allowing for executables or configuration files to be overwritten, resulting in arbitrary code execution. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability. Versions up to and including openshift-clients-4.7.0-202104250659.p0.git.95881af are affected.

Weakness: CWE-59, CWE-20

Which versions are affected by CVE-2020-27833?

It affects 1 product.

Products include Redhat Openshift Container Platform.

How do I fix CVE-2020-27833?

No fix has been published for CVE-2020-27833 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2020-27833 being exploited?

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

All Redhat Openshift Container Platform vulnerabilities

Sources

Also known as GHSA-95g7-22q2-6wmq.

Is CVE-2020-27833 in your software?

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

Check your SBOMs for free