Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-39973: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in iBotPeaches Apktool

0
High
VulnerabilityCVE-2026-39973cvecve-2026-39973cwe-22
Published: Tue Apr 21 2026 (04/21/2026, 01:35:22 UTC)
Source: CVE Database V5
Vendor/Project: iBotPeaches
Product: Apktool

Description

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/21/2026, 02:01:43 UTC

Technical Analysis

Apktool versions 3.0.0 and 3.0.1 contain a path traversal vulnerability in the resource file decoding component (ResFileDecoder.java). The vulnerability arises from the removal of the BrutIO.sanitizePath() method call, which previously prevented directory traversal attacks during file extraction. An attacker can craft an APK with '../' sequences in the resources.arsc Type String Pool to escape the output directory and write arbitrary files to the filesystem, potentially leading to remote code execution by overwriting critical user files like ~/.ssh/config or ~/.bashrc. This security regression was introduced in December 2025 and fixed in version 3.0.2 by restoring the path sanitization.

Potential Impact

Successful exploitation allows an attacker to write arbitrary files to arbitrary locations on the filesystem during APK decoding, which can lead to remote code execution if critical files are overwritten. The vulnerability compromises confidentiality and integrity but does not affect availability. The CVSS 3.1 vector indicates local attack vector with low complexity, no privileges required, user interaction required, unchanged scope, and high impact on confidentiality and integrity.

Mitigation Recommendations

A fix is available in Apktool version 3.0.2, which reintroduces the path sanitization function to prevent path traversal. Users should upgrade to version 3.0.2 or later to remediate this vulnerability. Since this is not a cloud service, remediation requires updating the local software installation. No vendor advisory content was provided to indicate alternative mitigations or temporary fixes.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-08T00:01:47.627Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69e6d6dd19fe3cd2cd64f727

Added to database: 4/21/2026, 1:46:05 AM

Last enriched: 4/21/2026, 2:01:43 AM

Last updated: 4/21/2026, 7:05:34 AM

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses