Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-21633

CVE-2024-21633: Apktool Path Traversal Vulnerability

CVE-2024-21633 is a path traversal vulnerability in Apktool that allows attackers to manipulate resource names to write files to arbitrary locations. This article covers the technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-21633 Overview

CVE-2024-21633 is a path traversal vulnerability affecting Apktool, a widely-used tool for reverse engineering Android APK files. The vulnerability exists in versions 2.9.1 and prior, where Apktool improperly infers resource files' output paths based on their resource names. An attacker can manipulate these resource names to place files at arbitrary locations on the system where Apktool is executed.

Critical Impact

Attackers can write or overwrite any file accessible to the user running Apktool, potentially leading to code execution, credential theft, or system compromise when the username is known or the current working directory is under the user folder.

Affected Products

  • Apktool versions 2.9.1 and prior
  • All platforms where Apktool is deployed for APK reverse engineering

Discovery Timeline

  • 2024-01-03 - CVE-2024-21633 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-21633

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Path Traversal), which allows attackers to escape intended directory restrictions and access or modify files in arbitrary locations. The flaw exists in how Apktool processes resource names within APK files during the decompilation process.

Apktool trusts resource names embedded within APK files without proper sanitization. When processing a maliciously crafted APK, the tool uses these untrusted resource names to construct output file paths. By including path traversal sequences (such as ../) in resource names, an attacker can direct Apktool to write files outside the intended output directory.

The attack requires local access and user interaction—specifically, the victim must process a malicious APK file using Apktool. Successful exploitation can result in complete compromise of confidentiality, integrity, and availability on the affected system.

Root Cause

The root cause is insufficient input validation and path sanitization when handling resource names from APK files. Apktool directly uses resource names to determine output file paths without verifying that the resulting path remains within the intended output directory boundaries. This allows specially crafted resource names containing directory traversal sequences to escape the sandbox.

Attack Vector

The attack requires an attacker to craft a malicious APK file with resource names containing path traversal sequences. When a security researcher, developer, or automated system processes this APK using Apktool, files can be written to arbitrary locations. Affected environments are those where:

  1. The user's username is known to the attacker, allowing targeted file placement in user directories
  2. The current working directory is within the user's home folder
  3. The user has write access to sensitive system or application directories

Exploitation scenarios include overwriting shell configuration files (.bashrc, .profile), SSH authorized keys, or application configuration files to achieve persistent access or code execution.

Detection Methods for CVE-2024-21633

Indicators of Compromise

  • Unexpected file modifications in user home directories after APK processing
  • Files appearing outside the intended Apktool output directory
  • APK files containing resource names with path traversal sequences (../, ..\)
  • Modified configuration files (.bashrc, .profile, .ssh/authorized_keys) with suspicious timestamps

Detection Strategies

  • Monitor file system activity during Apktool execution for writes outside expected directories
  • Implement file integrity monitoring (FIM) on sensitive directories and configuration files
  • Scan incoming APK files for resource names containing path traversal patterns before processing
  • Review Apktool command execution logs for processing of untrusted APK sources

Monitoring Recommendations

  • Deploy endpoint detection and response (EDR) solutions to monitor process behavior and file operations
  • Configure alerts for file writes in sensitive directories when spawned from Java processes running Apktool
  • Establish baselines for Apktool output patterns and alert on deviations
  • Monitor for newly created or modified files in user profile directories that correlate with APK processing activities

How to Mitigate CVE-2024-21633

Immediate Actions Required

  • Update Apktool to a version containing the security fix (commit d348c43b24a9de350ff6e5bd610545a10c1fc712 or later)
  • Audit systems where Apktool is deployed for signs of exploitation
  • Process untrusted APK files only in isolated environments such as containers or virtual machines
  • Review and restore any files that may have been modified by malicious APK processing

Patch Information

The Apktool development team has addressed this vulnerability in commit d348c43b24a9de350ff6e5bd610545a10c1fc712. Users should update to a version that includes this commit. Detailed information about the vulnerability and fix is available in the GitHub Security Advisory GHSA-2hqv-2xv4-5h5w.

Workarounds

  • Run Apktool in a sandboxed environment (Docker container, VM, or restricted user account) when processing untrusted APKs
  • Implement strict output directory restrictions using operating system-level access controls
  • Use a dedicated, unprivileged user account for APK analysis that has no write access to sensitive system files
  • Validate APK resource names for path traversal sequences before processing with unpatched Apktool versions
bash
# Example: Run Apktool in an isolated Docker container
docker run --rm -v $(pwd)/input:/input:ro -v $(pwd)/output:/output apktool-container apktool d /input/suspicious.apk -o /output/decompiled

# Example: Create restricted user for APK analysis
sudo useradd -r -s /bin/false -M apktool-user
sudo -u apktool-user apktool d suspicious.apk -o /tmp/apk-output

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechApktool

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability73.46%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-2hqv-2xv4-5h5w
  • Related CVEs
  • CVE-2026-39973: Apktool Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English