CVE-2024-21633
NixOS vulnerability analysis and mitigation

Overview

Apktool, a tool for reverse engineering Android APK files, was found to contain a critical vulnerability (CVE-2024-21633) in versions 2.9.1 and prior. The vulnerability allows attackers to manipulate resource names to place files at desired locations on the system where Apktool runs. This security flaw was discovered and disclosed on January 3, 2024, affecting environments where an attacker has write access to user-accessible files (GitHub Advisory).

Technical details

The vulnerability stems from Apktool's method of handling resource files during the decoding process. The tool infers resource files' output paths according to their resource names without proper sanitization, following the pattern [output-dir]/res/[type]/[resource-name]+[extension]. For example, if a resource named 'foo' with a path of 'res/raw/bar' is processed, it would normally be extracted to res/raw/foo. However, due to the lack of path sanitization, an attacker could manipulate the resource name to include directory traversal sequences. The vulnerability has been assigned a CVSS v3.1 score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability enables attackers to write or overwrite any file that the user has write access to. Under certain conditions, this could lead to the compromise of shell initialization files or authorized keys. The impact is particularly significant because an APK can contain up to 65,535 raw resources, allowing attackers to potentially brute-force their target files (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Apktool version 2.9.2. Users are strongly advised to update to this latest version to mitigate the risk. The fix was implemented through commit d348c43b24a9de350ff6e5bd610545a10c1fc712, which prevents arbitrary file writes with malicious resource names (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management