{"answers":{"affected":"2 open source packages ship an affected version, including org.apktool:apktool-lib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-39973 in the wild and no public exploit code.","fix":"Upgrade org.apktool:apktool-lib to 3.0.2 or later.","what":"CVE-2026-39973 is a high-severity path traversal vulnerability in iBotPeaches Apktool, published on 21 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-39973 and fix it if it is affected.\n\nWhat it is: CVE-2026-39973 is a high-severity path traversal vulnerability in iBotPeaches Apktool, published on 21 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-39973 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apktool:apktool-lib (Maven): affected from 3.0.0; fixed in 3.0.2\n- org.apktool:apktool-lib (Maven): affected from 3.0.0; fixed in 3.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39973/ (Markdown: https://insights.sbomify.com/CVE-2026-39973/index.md)","id":"CVE-2026-39973","markdown":"https://insights.sbomify.com/CVE-2026-39973/index.md","name":"CVE-2026-39973","record":{"aliases":["GHSA-m8mh-x359-vm8m","UBUNTU-CVE-2026-39973"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Android APK reverse engineering tool","requires_auth":"none","summary":"A malicious APK can exploit path traversal in Apktool to write arbitrary files, potentially leading to remote code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"apktool","vendor":"apktool"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2026-04-30","github_poc":1,"max_poc_stars":3,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-30T17:58:46Z","kind":"github_poc","ref":"https://github.com/frawlaboy/CVE-2026-39973-PoC","stars":3,"title":"Proof of concept (builder) for CVE-2026-39973 (apktool)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apktool: Path Traversal to Arbitrary File Write","id":"CVE-2026-39973","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"n8n-MCP has an Authenticated SSRF via instance-URL header in multi-tenant HTTP mode","id":"CVE-2026-39974"},"packages":[{"ecosystem":"Maven","fixed":["3.0.2"],"introduced":["3.0.0"],"last_affected":[],"package":"org.apktool:apktool-lib","purl":null,"source":"GHSA-m8mh-x359-vm8m"},{"ecosystem":"Maven","fixed":["3.0.2"],"introduced":["3.0.0"],"last_affected":[],"package":"org.apktool:apktool-lib","purl":"pkg:maven/org.apktool/apktool-lib","source":"GHSA-m8mh-x359-vm8m"}],"prev":{"headline":"Mercure has a Topic Selector Cache Key Collision","id":"CVE-2026-39972"},"products":["Apktool"],"published":"2026-04-21","related":[{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2024-24482","kev_date_added":null,"published":"2024-02-02"},{"cvss_score":7.8,"headline":"Arbitrary file write on Decoding","id":"CVE-2024-21633","kev_date_added":null,"published":"2024-01-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-23","vendors":["iBotPeaches"]},"summary":"A malicious APK can exploit path traversal in Apktool to write arbitrary files, potentially leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2026-39973/"}