CVE-2024-42472CWE-74

Flatpak may allow access to files outside sandbox for certain apps

Critical · published August 15, 2024

CVSS v3.1
10.0
EPSS
1%
Percentile
69.6
In the wild
Unconfirmed
What it is

🔥 Flatpak users, beware! Before versions 1.14.0 and 1.15.10, a sneaky app could steal your files like a burglar with a master key! Imagine a restaurant that gives a chef a key to the pantry, but the chef finds a secret door to the storage room, accessing everything! This is what happens when a Flatpak app uses persistent directories to reach outside its supposed limits. An attacker could exploit this vulnerability to access and modify files in your home directory, compromising your data's integrity and confidentiality. It's like leaving the vault door wide open for anyone to waltz in and take whatever they want! The potential for data loss or unauthorized changes is absolutely devastating.

Put simply

Imagine a restaurant that gives a chef a key to the pantry, but the chef finds a secret door to the storage room, accessing everything! This is what happens when a Flatpak app uses persistent directories to reach outside its supposed limits. This vulnerability allows a malicious Flatpak app to gain unintended access to files by replacing a bind mount's source directory with a symlink, thus bypassing the intended sandboxing mechanism.

What to do

An attacker could exploit this vulnerability to access and modify files in your home directory, compromising your data's integrity and confidentiality. It's like leaving the vault door wide open for anyone to waltz in and take whatever they want! The potential for data loss or unauthorized changes is absolutely devastating. To protect yourself, patch Flatpak to version 1.14.10 or 1.15.10, and ensure bubblewrap is updated as well. If you're using it from a system package, check if it needs patching separately. As a temporary measure, avoid using apps that require the `persistent` option. You've got this! By taking these steps, you'll be a security hero, keeping your system safe from sneaky attacks! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01272 · 69.6th percentile
Weakness
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2024-08-15T18:32Z
EPSS history
Timeline
  • 15 AUG 18:32Z
    Flatpak may allow access to files outside sandbox for certain apps
    cvelistv5