CVE-2026-97023: Flatpak: flatpak: arbitrary file deletion in root context via path traversal in deploy directory export/bin
A path traversal vulnerability in Flatpak's handling of the export/bin directory during app deployment allows a malicious Flatpak app to cause deletion of attacker-chosen files outside the deployment directory when the app is installed or upgraded. In system-wide installations, the deletion is performed as root.
Other sources
GHSA-5p67-xh8x-rq54 (https://github.com/flatpak/flatpak/security/advisories/GHSA-5p67-xh8x-rq54)
Description: A path traversal vulnerability during app installation could be used by an attacker to delete files outside the deployment directory. A malicious Flatpak app could arrange for an attacker-chosen file on the host system to be deleted when the app is upgraded. When installing Flatpak apps system-wide, the deletion is done by root.
Mitigation: No known mitigation other than updating. Patched in 1.18.4 by commits 01cd7c4b ("dir: Add fd-relative helpers for accessing deploy directories") and 40f1265c ("dir: Use fd-relative operations for export/bin removal during deploy"). Credit: Sebastian Wick.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/flatpakto a version that resolves this vulnerability.Fixed in 1.16.6-1~deb13u3Fixed in 1.18.4-1 - Upgrade
Upgrade
debian/flatpakto a version that resolves this vulnerability.Fixed in 1.16.6-1~deb13u3 - Upgrade
Upgrade
debian/flatpakto a version that resolves this vulnerability.Fixed in 1.18.4-1 - Upgrade
Upgrade
alpine/flatpakto a version that resolves this vulnerability.Fixed in 1.16.6_git20261120-r0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.18.4
Event History
Frequently Asked Questions
Who is most exposed to this issue?
Systems that install or upgrade malicious Flatpak apps are exposed. System-wide Flatpak installations are especially impacted because the affected deletion operation runs as root.
What must an attacker do to exploit it?
An attacker must provide a malicious Flatpak app containing path traversal in its export/bin deployment content. Exploitation occurs when that app is installed or upgraded, so user interaction is required.
What is the impact of a successful exploit?
A malicious app can cause deletion of attacker-chosen files outside its intended deployment directory. In a system-wide installation, those deletions are performed with root privileges.