GHSA-m8mh-x359-vm8m

Suggest an improvement
Source
https://github.com/advisories/GHSA-m8mh-x359-vm8m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m8mh-x359-vm8m/GHSA-m8mh-x359-vm8m.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-m8mh-x359-vm8m
Aliases
Published
2026-04-23T21:24:28Z
Modified
2026-04-23T21:34:52.735698Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Apktool: Path Traversal to Arbitrary File Write
Details

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.

Fix: Re-introduce BrutIO.sanitizePath() in ResFileDecoder.java before file write operations.

Database specific
{
    "severity": "HIGH",
    "nvd_published_at": "2026-04-21T02:16:07Z",
    "github_reviewed_at": "2026-04-23T21:24:28Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "github_reviewed": true
}
References

Affected packages

Maven / org.apktool:apktool-lib

Package

Name
org.apktool:apktool-lib
View open source insights on deps.dev
Purl
pkg:maven/org.apktool/apktool-lib

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0
Fixed
3.0.2

Affected versions

3.*
3.0.0
3.0.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m8mh-x359-vm8m/GHSA-m8mh-x359-vm8m.json"