
Cloud Vulnerability DB
A community-led vulnerabilities database
Apktool, a tool for reverse engineering Android APK files, was found to contain a critical vulnerability (CVE-2024-21633) in versions 2.9.1 and prior. The vulnerability allows attackers to manipulate resource names to place files at desired locations on the system where Apktool runs. This security flaw was discovered and disclosed on January 3, 2024, affecting environments where an attacker has write access to user-accessible files (GitHub Advisory).
The vulnerability stems from Apktool's method of handling resource files during the decoding process. The tool infers resource files' output paths according to their resource names without proper sanitization, following the pattern [output-dir]/res/[type]/[resource-name]+[extension]. For example, if a resource named 'foo' with a path of 'res/raw/bar' is processed, it would normally be extracted to res/raw/foo. However, due to the lack of path sanitization, an attacker could manipulate the resource name to include directory traversal sequences. The vulnerability has been assigned a CVSS v3.1 score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).
The vulnerability enables attackers to write or overwrite any file that the user has write access to. Under certain conditions, this could lead to the compromise of shell initialization files or authorized keys. The impact is particularly significant because an APK can contain up to 65,535 raw resources, allowing attackers to potentially brute-force their target files (GitHub Advisory).
The vulnerability has been patched in Apktool version 2.9.2. Users are strongly advised to update to this latest version to mitigate the risk. The fix was implemented through commit d348c43b24a9de350ff6e5bd610545a10c1fc712, which prevents arbitrary file writes with malicious resource names (GitHub Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."