Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDistribute weaponized APK
-
DeliveryVictim runs apktool decode
-
ExploitPath traversal in resource extraction
-
ExecutionWrite malicious files to ~/.ssh or startup
-
PersistPayload executes in subsequent session
-
ImpactCode execution as user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to execute |
| Impact | Real-world risk assessment reveals moderate practical threat despite CVSS 7.1 scoring. The CVSS vector (AV:L/AC:L/PR:N/UI:R) indicates local attack requiring user interaction - specifically, a security researcher, reverse engineer, or developer must voluntarily run |
| Exploit ScenarioDerived | An attacker crafts a malicious Android APK file with a weaponized resources.arsc containing Type String Pool entries like |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 21, 2026
Path traversal in Apktool 3.0.0-3.0.1 enables malicious APK files to write arbitrary files during decoding operations, potentially achieving remote code execution by overwriting shell configuration files or startup scripts. This security regression, introduced December 12, 2025 when sanitization controls were removed from resource decoder logic, allows attackers to embed directory traversal sequences in APK metadata that escape output directories and target critical system files like ~/.ssh/config or Windows Startup folders. CVSS 7.1 with local attack vector and required user interaction. No active exploitation (CISA KEV) or public POC identified at time of analysis, but exploit development is straightforward given the detailed technical disclosure in GitHub advisory GHSA-m8mh-x359-vm8m.
Earlier versions of this analysis (1)
Path traversal in Apktool 3.0.0-3.0.1 allows malicious APKs to write arbitrary files during decompilation, achieving RCE via SSH config or shell startup files. The regression (PR #4041, Dec 2025) removed path sanitization from resource file decoding. Attackers embed directory traversal sequences in APK resources.arsc to escape output directories. Widely used by Android security researchers and reverse engineers, making this a supply-chain vector. No public exploit code identified at time of analysis, though CVSS AV:L/UI:R indicates local attack requiring user interaction (running apktool d on malicious APK). EPSS data not provided for risk quantification.
RemediationAI
Immediately upgrade to Apktool version 3.0.2 or later, available at https://github.com/iBotPeaches/Apktool/releases/tag/v3.0.2, which re-implements path sanitization controls in ResFileDecoder.java to prevent directory traversal during resource extraction. Organizations unable to upgrade immediately should implement the following compensating controls with noted trade-offs: (1) Execute all apktool d operations within containerized environments (Docker, Podman) or virtual machines with isolated filesystems, preventing escape to host system directories but adding operational overhead to analysis workflows. (2) Run Apktool under restricted user accounts with write permissions limited to dedicated output directories outside user home folders, mitigating SSH config and shell profile overwrites but not preventing writes to permitted paths. (3) Deploy mandatory access control systems (SELinux, AppArmor) with policies restricting Apktool file write operations to explicitly whitelisted paths, requiring security expertise to configure correctly and potentially breaking legitimate resource extraction to unexpected locations. (4) Process only APK files from explicitly trusted sources and avoid decoding samples from malware repositories, app stores, or unknown origins without sandboxing, though this limits security research capabilities. For automated analysis pipelines, implement pre-processing validation that inspects resources.arsc Type String Pools for path traversal sequences (../, .\, absolute paths) before invoking Apktool, with the caveat that sophisticated obfuscation may bypass string-based detection. The vendor patch is the only complete mitigation; all workarounds carry operational or security limitations.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apktool is a widely-used reverse engineering framework for Android APK files, enabling security researchers and developers to decode application resources and reassemble modified packages. The vulnerability resides in the resource file decoder component (brut/androlib/res/decoder/ResFileDecoder.java), which processes the resources.arsc file - a binary archive containing all compiled resources (strings, layouts, images) indexed by Type String Pools. During normal apktool d decoding operations, the tool extracts resource names from these string pools and writes corresponding files to the output directory. The CWE-22 path traversal flaw allows malicious APK authors to inject ../ sequences into resource file paths stored within the resources.arsc Type String Pool. When processed without sanitization, these sequences cause file writes to escape the intended output directory. Commit e10a045 (PR #4041) inadvertently removed the BrutIO.sanitizePath() validation function that previously normalized paths and stripped traversal attempts, creating a window between December 2025 and the 3.0.2 patch release where all resource extraction operations became vulnerable to directory escape attacks.
Know when Apktool gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Apktool is a tool for reverse engineering Android APK files. In versions 3.0.0 and 3.0.1, a path traversal vulnerability in brut/androlib/res/decoder/ResFileDecoder.java allows a maliciously crafted APK to write arbitrary files to the filesystem during standard decoding (apktool d). This is a security regression introduced in commit e10a045 (PR #4041, December 12, 2025), which removed the BrutIO.sanitizePath() call that previously prevented path traversal in resource file output paths. An attacker can embed ../ sequences in the resources.arsc Type String Pool to escape the output directory and write files to arbitrary locations, including ~/.ssh/config, ~/.bashrc, or Windows Startup folders, escalating to RCE. The fix in version 3.0.2 re-introduces BrutIO.sanitizePath() in ResFileDecoder.java before file write operations.
Blast Radius
ecosystem impact- 1 maven packages depend on org.apktool:apktool-lib (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 3.0.0.
Executive ViewAI
Apktool versions 3.0.0 through 3.0.1 contain a path traversal vulnerability that allows attackers to write arbitrary files to system directories when processing malicious APK files, potentially enabling code execution if startup scripts or shell configuration files are overwritten. Organizations using Apktool for APK analysis or reverse engineering face risk of system compromise if developers process untrusted APK files without additional safeguards.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict Apktool 3.0.0-3.0.1 use to isolated, air-gapped analysis environments; (2) execute Apktool with least-privilege user accounts in read-only home directories; (3) implement file integrity monitoring on system startup scripts and ~/.ssh directories; (4) require code review before processing externally-sourced APK files; (5) downgrade to Apktool 2.9.3 until patched version released.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Apktool versions 2.9.1 and prior contain a path traversal vulnerability when processing Android APK files. Malicious APK
Aprktool before 2.9.3 on Windows allows ../ and /.. Rated critical severity (CVSS 9.8), this vulnerability is remotely e
EUVD-2026-24043
GHSA-m8mh-x359-vm8m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB