CVEfocus › CVE database › CVE-2026-39973

CVE-2026-39973Apktool: Path Traversal to Arbitrary File Write

CVSS 7.1 HighEPSS 0.2% (higher than 5% of CVEs)Published 2026-04-21Updated 2026-04-23Assigner: GitHub_M

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.

CWE-22

What to do

Fixed builds are available from Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
4Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10apktoolFix pendingUBUNTU-CVE-2026-39973
Ubuntu 26.04apktoolUnder investigationUBUNTU-CVE-2026-39973
Ubuntu 25.10apktoolWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-39973
Ubuntu 24.04apktoolUnder investigationUBUNTU-CVE-2026-39973
Ubuntu 22.04apktoolUnder investigationUBUNTU-CVE-2026-39973
Ubuntu 20.04apktoolFix pendingUBUNTU-CVE-2026-39973
Ubuntu 18.04apktoolFix pendingUBUNTU-CVE-2026-39973
Ubuntu 16.04apktoolFix pendingUBUNTU-CVE-2026-39973
Maven libraryorg.apktool:apktool-libFixed3.0.2GHSA-m8mh-x359-vm8m

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.