CVE-2022-21675 Bytecode Viewer v2.10.x Zip Slip
Attackers can achieve remote code execution by exploiting a Zip Slip vulnerability in Bytecode Viewer via crafted archives.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-21675?
CVE-2022-21675 is a critical path traversal vulnerability in Konloch bytecode-viewer, published on 12 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Bytecode Viewer (BCV) is a Java/Android reverse engineering suite. Versions of the package prior to 2.11.0 are vulnerable to Arbitrary File Write via Archive Extraction (AKA "Zip Slip"). The vulnerability is exploited using a specially crafted archive that holds directory traversal filenames (e.g. ../../evil.exe). The Zip Slip vulnerability can affect numerous archive formats, including zip, jar, tar, war, cpio, apk, rar and 7z. The attacker can then overwrite executable files and either invoke them remotely or wait for the system or user to call them, thus achieving remote command execution on the victim’s machine. The impact of a Zip Slip vulnerability would allow an attacker to create or overwrite existing files on the filesystem. In the context of a web application, a web shell could be placed within the application directory to achieve code execution. All users should upgrade to BCV v2.11.0 when possible to receive a patch. There are no recommended workarounds aside from upgrading.
Weakness: CWE-22
Which versions are affected by CVE-2022-21675?
It affects 1 product.
Products include Bytecode Viewer Project Bytecode Viewer.
How do I fix CVE-2022-21675?
No fix has been published for CVE-2022-21675 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-2022-21675 being exploited?
There is no known exploitation of CVE-2022-21675 in the wild and no public exploit code.
Sources
Also known as GHSA-3wq9-j4fc-4wmc.