CVE-2026-39973Apktool: Path Traversal to Arbitrary File Write
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | apktool | Fix pending | UBUNTU-CVE-2026-39973 | |
| Ubuntu 26.04 | apktool | Under investigation | UBUNTU-CVE-2026-39973 | |
| Ubuntu 25.10 | apktool | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-39973 | |
| Ubuntu 24.04 | apktool | Under investigation | UBUNTU-CVE-2026-39973 | |
| Ubuntu 22.04 | apktool | Under investigation | UBUNTU-CVE-2026-39973 | |
| Ubuntu 20.04 | apktool | Fix pending | UBUNTU-CVE-2026-39973 | |
| Ubuntu 18.04 | apktool | Fix pending | UBUNTU-CVE-2026-39973 | |
| Ubuntu 16.04 | apktool | Fix pending | UBUNTU-CVE-2026-39973 | |
| Maven library | org.apktool:apktool-lib | Fixed | 3.0.2 | GHSA-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.
- iBotPeaches Apktool: affected: >= 3.0.0, < 3.0.2
References
- https://github.com/iBotPeaches/Apktool/security/advisories/GHSA-m8mh-x359-vm8m
- https://github.com/iBotPeaches/Apktool/pull/4041
- https://github.com/iBotPeaches/Apktool/commit/e10a0450c7afcd9462c0b76bcbff0e7428b92bdd#diff-cd531ebe1014bfd18185bf21585ca5cdb16fbcb07703ebc47949a1b4e4e36bc3
- https://github.com/iBotPeaches/Apktool/releases/tag/v3.0.2
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.