Skip to main content

Apktool EUVDEUVD-2026-24043

| CVE-2026-39973 HIGH
Path Traversal (CWE-22)
2026-04-21 GitHub_M GHSA-m8mh-x359-vm8m
7.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Distribute weaponized APK
  2. Delivery
    Victim runs apktool decode
  3. Exploit
    Path traversal in resource extraction
  4. Execution
    Write malicious files to ~/.ssh or startup
  5. Persist
    Payload executes in subsequent session
  6. Impact
    Code 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 apktool d <malicious.apk> using Apktool version 3.0.0 or 3.0.1 specifically, which contain the vulnerable ResFileDecoder.java code introduced in commit e10a045. The target system must have Apktool installed and the user must voluntarily initiate decoding of an attacker-supplied APK file. No special Apktool configuration, command-line flags, or environmental variables are required - standard default decoding operations are vulnerable. Attack success depends on filesystem write permissions at the traversal target location; writing to ~/.ssh/config requires the user's home directory to be writable (typical default), while system-level targets like /etc may fail without elevated privileges. User interaction (UI:R in CVSS vector) is mandatory as the victim must actively run the decode command. However, exploitation does NOT require: authenticated Apktool features, network connectivity during decoding, specific JVM versions, or non-default build configurations. The attack surface is limited to security researchers, malware analysts, Android developers, and automated reverse engineering pipelines that process APK files from untrusted sources, excluding typical end-users who do not operate reverse engineering toolchains.

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 apktool d malicious.apk on their workstation. Attack complexity is low once the victim executes the decode command, as no special environmental conditions are required beyond Apktool 3.0.0 or 3.0.1 installation. The vulnerability grants high confidentiality and integrity impact through arbitrary file write primitives that can overwrite SSH configurations, shell profiles, or application startup scripts, leading to credential theft or code execution in subsequent sessions. However, EPSS data is not available for this recent 2026 CVE, and CISA KEV status is negative, indicating no confirmed widespread exploitation. The tight 3-month window between vulnerability introduction (December 2025) and likely disclosure (early 2026) limits attacker opportunity. Primary risk concentrations include: (1) targeted attacks against security researchers analyzing potentially malicious APKs from untrusted sources, (2) supply chain scenarios where compromised APKs are distributed through research communities or malware analysis platforms, and (3) automated reverse engineering pipelines processing APK samples without sandboxing. The detailed GitHub security advisory and visible commit history make exploit development trivial for adversaries, but the requirement for victim-initiated decoding and the specialized user base (reverse engineers) constrain mass exploitation potential. Organizations running automated APK analysis infrastructure face elevated risk if processing untrusted samples without filesystem isolation.

Exploit ScenarioDerived

An attacker crafts a malicious Android APK file with a weaponized resources.arsc containing Type String Pool entries like ../../../../.ssh/config or ..\..\..\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\malware.bat. The attacker distributes this APK through malware analysis communities, GitHub repositories, or third-party app stores targeting security researchers. When a reverse engineer runs apktool d malicious.apk on their development workstation to analyze the application, Apktool 3.0.0/3.0.1 processes the traversal sequences without sanitization, writing attacker-controlled content to ~/.ssh/config (enabling SSH session hijacking), ~/.bashrc (executing commands on next shell launch), or Windows Startup folders (achieving persistence). The researcher remains unaware until the malicious payload executes in a subsequent session, granting the attacker code execution with the victim's user privileges and potential access to source code repositories, credentials, or corporate networks.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Apr 21, 2026 - 02:11 CVSS 7.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

Apktool 3.0.0, < 3.0.2

Affected Packages

maven org.apktool:apktool-lib fix: 3.0.2
euvd apktool_3_0_0 fix: 3.0.2

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

NVD PRIMARY 7.1 HIGH
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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

4
Patch released
Apr 23, 2026 - 15:39 nvd
Patch available
Patch available
Apr 21, 2026 - 03:01 EUVD
Analysis Updated
Apr 21, 2026 - 02:28 vuln.today
v2 - CVSS changed
CVE Published
Apr 21, 2026 - 01:35 nvd
HIGH 7.1

DescriptionNVD

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 maven packages depend on org.apktool:apktool-lib (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 3.0.0.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy