CVE-2020-27534 Path Traversal in Moby builder

Medium 5.3 Published Updated

Docker Engine allows local attackers to execute arbitrary code or escalate privileges via path traversal in binfmt_misc checks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-27534?

CVE-2020-27534 is a medium-severity path traversal vulnerability in n/a, published on 30 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

util/binfmt_misc/check.go in Builder in Docker Engine before 19.03.9 calls os.OpenFile with a potentially unsafe qemu-check temporary pathname, constructed with an empty first argument in an ioutil.TempDir call.

Weakness: CWE-22

Which versions are affected by CVE-2020-27534?

4 open source packages ship an affected version, including github.com/docker/docker and github.com/moby/moby. It affects 1 product.

PackageAffectedFixed in
github.com/docker/docker GoAll versions19.03.9
github.com/docker/docker GoAll versions19.03.9
github.com/moby/moby GoAll versions19.03.9
github.com/moby/moby GoAll versions19.03.9

Products include Docker Docker.

How do I fix CVE-2020-27534?

Upgrade github.com/docker/docker to 19.03.9 or later.

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

Is CVE-2020-27534 being exploited?

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

Sources

Also known as GHSA-6hwg-w5jg-9c6x.

Is CVE-2020-27534 in your software?

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

Check your SBOMs for free