SCA: security update for org.apktool:apktool-lib (GHSA-m8mh-x359-vm8m)

high Tenable Cloud Security Plugin ID 440789

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-39973)

Solution

Update the org.apktool:apktool-lib library and its related packages to version 3.0.2 or later.

See Also

https://github.com/advisories/GHSA-m8mh-x359-vm8m

Plugin Details

Severity: High

ID: 440789

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 4/24/2026

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

Percentile: 96.81

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 6.6

Temporal Score: 5.2

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:N

CVSS Score Source: CVE-2026-39973

CVSS v3

Risk Factor: High

Base Score: 7.1

Temporal Score: 6.4

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/23/2026

Vulnerability Publication Date: 4/21/2026

Reference Information

CVE: CVE-2026-39973

cwe: CWE-22