CVE-2021-21381
Fixed in a distro release EPSS 2%CVSS 7.1
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. In Flatpack since version 0.9.4 and before version 1.10.2 has a vulnerability in the "file forwarding" feature which can be used by an attacker to gain access to files that would not ordinarily be allowed by the app's permissions. By putting the special tokens `@@` and/or `@@u` in the Exec field of a Flatpak app's .desktop file, a malicious app publisher can trick flatpak into behaving as though the user had chosen to open a target file with their Flatpak app, which automatically makes that file available to the Flatpak app. This is fixed in version 1.10.2. A minimal solution is the first commit "`Disallow @@ and @@U usage in desktop files`". The follow-up commits "`dir: Reserve the whole @@ prefix`" and "`dir: Refuse to export .desktop files with suspicious uses of @@ tokens`" are recommended, but not strictly required. As a workaround, avoid installing Flatpak apps from untrusted sources, or check the contents of the exported `.desktop` files in `exports/share/applications/*.desktop` (typically `~/.local/share/flatpak/exports/share/applications/*.desktop` and `/var/lib/flatpak/exports/share/applications/*.desktop`) to make sure that literal filenames do not follow `@@` or `@@u`.
Products: flatpak
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux 2 | flatpak | 1.0.9-10.amzn2.0.1 |
| Amazon Linux 2 | flatpak-builder | 1.0.0-10.amzn2.0.1 |
| Amazon Linux 2 | flatpak-devel | 1.0.9-10.amzn2.0.1 |
| Amazon Linux 2 | flatpak-libs | 1.0.9-10.amzn2.0.1 |
| Arch Linux | flatpak | 1.10.2-1 |
| Debian 10 | flatpak | 1.2.5-0+deb10u4 |
| Debian 12 | flatpak | 1.10.1-4 |
| Debian 13 | flatpak | 1.10.1-4 |
| Debian 14 | flatpak | 1.10.1-4 |
| Red Hat Enterprise Linux 7 | flatpak | 0:1.0.9-11.el7_9 |
| Red Hat Enterprise Linux 7 | flatpak-builder | 0:1.0.0-11.el7_9 |
| Red Hat Enterprise Linux 7 | flatpak-debuginfo | 0:1.0.9-11.el7_9 |
| Red Hat Enterprise Linux 7 | flatpak-devel | 0:1.0.9-11.el7_9 |
| Red Hat Enterprise Linux 7 | flatpak-libs | 0:1.0.9-11.el7_9 |
| Red Hat Enterprise Linux 8 | flatpak | 0:1.6.2-6.el8_3 |
| Red Hat Enterprise Linux 8 | flatpak-debuginfo | 0:1.6.2-6.el8_3 |
| Red Hat Enterprise Linux 8 | flatpak-debugsource | 0:1.6.2-6.el8_3 |
| Red Hat Enterprise Linux 8 | flatpak-libs | 0:1.6.2-6.el8_3 |
| Red Hat Enterprise Linux 8 | flatpak-libs-debuginfo | 0:1.6.2-6.el8_3 |
| Red Hat Enterprise Linux 8 | flatpak-selinux | 0:1.6.2-6.el8_3 |
| Red Hat Enterprise Linux 8 | flatpak-session-helper | 0:1.6.2-6.el8_3 |
| Red Hat Enterprise Linux 8 | flatpak-session-helper-debuginfo | 0:1.6.2-6.el8_3 |
| Red Hat Enterprise Linux 8 | flatpak-tests-debuginfo | 0:1.6.2-6.el8_3 |
| Red Hat rhel eus 8.1 | flatpak | 0:1.0.9-4.el8_1 |
| Red Hat rhel eus 8.1 | flatpak-debuginfo | 0:1.0.9-4.el8_1 |
| Red Hat rhel eus 8.1 | flatpak-debugsource | 0:1.0.9-4.el8_1 |
| Red Hat rhel eus 8.1 | flatpak-libs | 0:1.0.9-4.el8_1 |
| Red Hat rhel eus 8.1 | flatpak-libs-debuginfo | 0:1.0.9-4.el8_1 |
| Red Hat rhel eus 8.2 | flatpak | 0:1.6.2-5.el8_2 |
| Red Hat rhel eus 8.2 | flatpak-debuginfo | 0:1.6.2-5.el8_2 |
| Red Hat rhel eus 8.2 | flatpak-debugsource | 0:1.6.2-5.el8_2 |
| Red Hat rhel eus 8.2 | flatpak-libs | 0:1.6.2-5.el8_2 |
| Red Hat rhel eus 8.2 | flatpak-libs-debuginfo | 0:1.6.2-5.el8_2 |
| Red Hat rhel eus 8.2 | flatpak-selinux | 0:1.6.2-5.el8_2 |
| Red Hat rhel eus 8.2 | flatpak-session-helper | 0:1.6.2-5.el8_2 |
| Red Hat rhel eus 8.2 | flatpak-session-helper-debuginfo | 0:1.6.2-5.el8_2 |
| Red Hat rhel eus 8.2 | flatpak-tests-debuginfo | 0:1.6.2-5.el8_2 |
| SUSE Enterprise Storage 6 | flatpak | 1.2.3-150100.4.5.2 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | flatpak | 1.2.3-150100.4.5.2 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | flatpak | 1.2.3-150100.4.5.2 |
| SUSE Linux Enterprise Server 15 SP1-BCL | flatpak | 1.2.3-150100.4.5.2 |
| SUSE Linux Enterprise Server 15 SP1-LTSS | flatpak | 1.2.3-150100.4.5.2 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | flatpak | 1.2.3-150100.4.5.2 |
| Ubuntu 18.04 LTS | flatpak | 1.0.9-0ubuntu0.3 |
| Ubuntu 20.04 LTS | flatpak | 1.6.5-0ubuntu0.3 |