CVE-2021-23520 Arbitrary File Write via Archive Extraction (Zip Slip)

Medium 5.5 Published Updated

Attackers can write arbitrary files outside the intended directory via Zip Slip in the JUCE framework, potentially leading to code execution.

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-23520?

CVE-2021-23520 is a medium-severity path traversal vulnerability in n/a, published on 31 Jan 2022. 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

The package juce-framework/juce before 6.1.5 are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) via the ZipFile::uncompressEntry function in juce_ZipFile.cpp. This vulnerability is triggered when the archive is extracted upon calling uncompressTo() on a ZipFile object.

Weakness: CWE-22

Which versions are affected by CVE-2021-23520?

It affects 1 product.

Products include Juce Juce.

How do I fix CVE-2021-23520?

Upgrade to a fixed version.

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

Is CVE-2021-23520 being exploited?

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

Sources

Also known as DEBIAN-CVE-2021-23520, GHSA-qpj6-xj62-7c95, SNYK-UNMANAGED-JUCEFRAMEWORKJUCE-2388607, UBUNTU-CVE-2021-23520.

Is CVE-2021-23520 in your software?

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

Check your SBOMs for free