CVE catalog

CVE-2026-39973

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

[CVE catalog]

Severity
High · CVSS 7.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.18% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianapktoolsid2.7.0+dfsg-7.2not affected
Debianapktoolforky2.7.0+dfsg-7.2not affected
Debianapktooltrixie2.7.0+dfsg-7not affected
Debianapktoolbookworm2.7.0+dfsg-6+deb12u1not affected
CpeapktoolNot reported3.0.2fixed
CpeapktoolNot reported3.0.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebianapktoolsourcesidNot affectedunimportantNot reportedNot reported
DebianapktoolsourceforkyNot affectedunimportantNot reportedNot reported
DebianapktoolsourcetrixieNot affectedunimportantNot reportedNot reported
DebianapktoolsourcebookwormNot affectedunimportantNot reportedNot reported
CpeapktoolcpeNot reported3.0.2Not reportedNot reportedNot reported
CpeapktoolcpeNot reported3.0.2Not reportedNVD-CVE-2026-39973Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [apktool]Not affected
    Details (2)
    • 2.7.0+dfsg-6+deb12u1 · amd64 · bookworm

      Not affected

      nvd · apktool · debian · bookworm

    • 2.7.0+dfsg-6+deb12u1 · arm64 · bookworm

      Not affected

      nvd · apktool · debian · bookworm

Observed:

References