The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-42472

CVE-2024-42472: Flatpak Privilege Escalation Vulnerability

CVE-2024-42472 is a privilege escalation vulnerability in Flatpak that allows malicious apps to access files outside their sandbox. This article covers the technical details, affected versions, and mitigation steps.

Published: January 28, 2026

CVE-2024-42472 Overview

CVE-2024-42472 is a critical sandbox escape vulnerability in Flatpak, the Linux application sandboxing and distribution framework. A malicious or compromised Flatpak application using persistent directories can access and write files outside of its intended sandbox boundaries, compromising both system integrity and confidentiality.

The vulnerability exploits the persistent (--persist) permission mechanism in Flatpak. When persistent=subdir is configured, an application that otherwise lacks access to the real user home directory is presented with an empty home directory containing a writeable subdirectory. This subdirectory is actually a bind mount with data stored in ~/.var/app/$APPID/subdir. By replacing the source directory with a symlink, an attacker can cause the bind mount to follow the symlink on the next application startup, effectively mounting arbitrary directories into the sandbox.

Critical Impact

This vulnerability allows complete sandbox escape, enabling malicious Flatpak applications to read and write arbitrary files on the host system outside their designated sandbox boundaries.

Affected Products

  • Flatpak versions prior to 1.14.10 (stable branch)
  • Flatpak versions prior to 1.15.10 (development branch)
  • Debian Linux 11.0

Discovery Timeline

  • August 15, 2024 - CVE-2024-42472 published to NVD
  • August 19, 2025 - Last updated in NVD database

Technical Details for CVE-2024-42472

Vulnerability Analysis

This vulnerability represents a Symlink Attack (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component) that undermines Flatpak's core sandboxing guarantees.

When the persistent permission is used, Flatpak creates bind mounts to allow sandboxed applications to maintain state across sessions without granting full home directory access. The critical flaw lies in how Flatpak handles the source directory for these bind mounts. Since the application retains write access to its application directory at ~/.var/app/$APPID, it can replace the legitimate source directory with a symbolic link pointing to any location on the filesystem.

Upon the next application launch, Flatpak follows the symlink when establishing the bind mount, effectively mounting the symlink's target into the sandbox with full read/write access. This breaks the fundamental security model of containerized applications.

Initial patches (commits ceec2ffc and 98f79773) provided partial protection but left a race condition exploitable when two instances of a malicious application run in parallel. Complete remediation requires updating both Flatpak and bubblewrap to support the new --bind-fd option, which closes the race condition window.

Root Cause

The root cause is insufficient validation of the source directory for persistent bind mounts. Flatpak fails to verify that the source directory hasn't been replaced with a symlink before establishing the bind mount. The application's write access to the ~/.var/app/$APPID directory creates the conditions necessary for exploitation.

Additionally, the original fix introduced a Time-of-Check Time-of-Use (TOCTOU) race condition. Between verifying the directory type and establishing the bind mount, an attacker could swap a legitimate directory for a symlink, requiring the --bind-fd enhancement in bubblewrap to properly remediate.

Attack Vector

The attack requires a malicious or compromised Flatpak application with the persistent permission enabled. The attack sequence proceeds as follows:

  1. A malicious Flatpak app is installed with --persist=subdir permission
  2. The application runs and has write access to ~/.var/app/$APPID/
  3. The attacker replaces the legitimate subdir directory with a symlink pointing to a sensitive location (e.g., ~/.ssh, ~/.gnupg, or system configuration directories)
  4. On next application launch, Flatpak follows the symlink when creating the bind mount
  5. The targeted directory is now accessible within the sandbox with full read/write permissions

This attack is particularly dangerous because users may install seemingly legitimate applications that later reveal malicious behavior, or legitimate applications may be compromised to exploit this vulnerability.

Detection Methods for CVE-2024-42472

Indicators of Compromise

  • Unexpected symbolic links within ~/.var/app/*/ directories pointing outside the application directory
  • Flatpak applications with unexplained access to sensitive user files such as SSH keys, GPG keyrings, or browser data
  • Suspicious file modifications in user home directories that correlate with Flatpak application launches
  • Audit logs showing bind mount operations targeting unexpected filesystem locations

Detection Strategies

  • Monitor for symlink creation within ~/.var/app/ directories using filesystem auditing tools like auditd
  • Implement file integrity monitoring on sensitive directories to detect unauthorized access patterns
  • Review installed Flatpak applications for those using the persistent permission with flatpak info --show-permissions
  • Check Flatpak and bubblewrap versions against patched releases (Flatpak >= 1.14.10 or >= 1.15.10)

Monitoring Recommendations

  • Deploy endpoint detection to alert on unusual bind mount activity or symlink manipulation within application data directories
  • Enable audit logging for the ~/.var/app/ directory tree to capture filesystem modifications
  • Monitor for multiple concurrent instances of the same Flatpak application, which may indicate race condition exploitation attempts
  • Track Flatpak application launches in correlation with sensitive file access events

How to Mitigate CVE-2024-42472

Immediate Actions Required

  • Update Flatpak to version 1.14.10 (stable branch) or 1.15.10 (development branch) immediately
  • Update bubblewrap to version 0.6.3 (for Flatpak 1.14.x) or 0.10.0 (for Flatpak 1.15.x) if using system bubblewrap
  • Audit installed Flatpak applications and remove any untrusted applications using the persistent permission
  • Review application permissions using flatpak info --show-permissions <app-id> for all installed applications

Patch Information

Official patches are available through multiple commits addressing various aspects of the vulnerability:

  • Flatpak Security Advisory GHSA-7hgv-f2j8-xw87 provides comprehensive details on the vulnerability and fixes
  • Bubblewrap commit updates add the --bind-fd option required to close the race condition
  • Flatpak commit updates implement the security fixes

For the stable 1.14.x branch, upgrade to Flatpak 1.14.10 which includes the bundled bubblewrap 0.6.3. For the development 1.15.x branch, upgrade to Flatpak 1.15.10 with bubblewrap 0.10.0. Note that the 1.12.x and 1.10.x branches will not receive updates—long-term support distributions should backport the individual changes.

The Debian LTS Announcement provides guidance for Debian-based systems.

Workarounds

  • Avoid using or installing applications that utilize the persistent (--persist) permission until systems are patched
  • Remove the persistent permission from existing applications where possible using flatpak override --user --no-persist=<subdir> <app-id>
  • Consider using flatpak override to restrict permissions for untrusted applications
  • If patching is not immediately possible, consider temporarily uninstalling applications known to use persistent directories
bash
# Check Flatpak version and verify it's patched
flatpak --version

# List all Flatpak applications and their permissions
flatpak list --app --columns=name,application
flatpak info --show-permissions <app-id>

# Remove persistent permission from an application
flatpak override --user --no-persist=<subdir> <app-id>

# Update Flatpak on Debian/Ubuntu
sudo apt update && sudo apt install flatpak

# Update Flatpak on Fedora/RHEL
sudo dnf update flatpak bubblewrap

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechFlatpak

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability6.54%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-74
  • Technical References
  • Openwall OSS-Security List Update

  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Bubblewrap Commit Update

  • GitHub Bubblewrap Commit Update

  • GitHub Flatpak Commit Update

  • GitHub Flatpak Commit Update

  • GitHub Flatpak Commit Update

  • GitHub Flatpak Commit Update

  • GitHub Flatpak Commit Update

  • GitHub Flatpak Commit Update

  • GitHub Security Advisory GHSA-7hgv-f2j8-xw87
  • Related CVEs
  • CVE-2023-28100: Flatpak Privilege Escalation Vulnerability

  • CVE-2026-39977: flatpak-builder Path Traversal Flaw

  • CVE-2026-34078: Flatpak Symlink RCE Vulnerability

  • CVE-2026-34079: Flatpak 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