CVE-2024-21633 Arbitrary file write on Decoding

High 7.8 Published Updated

Attackers can write arbitrary files to the system by manipulating resource names in APK files processed by Apktool.

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-2024-21633?

CVE-2024-21633 is a high-severity path traversal vulnerability in iBotPeaches Apktool, published on 3 Jan 2024. 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

Apktool is a tool for reverse engineering Android APK files. In versions 2.9.1 and prior, Apktool infers resource files' output path according to their resource names which can be manipulated by attacker to place files at desired location on the system Apktool runs on. Affected environments are those in which an attacker may write/overwrite any file that user has write access, and either user name is known or cwd is under user folder. Commit d348c43b24a9de350ff6e5bd610545a10c1fc712 contains a patch for this issue.

Weakness: CWE-22

Which versions are affected by CVE-2024-21633?

It affects 1 product.

Products include Apktool Apktool.

How do I fix CVE-2024-21633?

Apply the vendor's patch.

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

Is CVE-2024-21633 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21633 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as DEBIAN-CVE-2024-21633, GHSA-2hqv-2xv4-5h5w, UBUNTU-CVE-2024-21633.

Is CVE-2024-21633 in your software?

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

Check your SBOMs for free