Sandbox escape via special tokens in .desktop file
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| flatpak | flatpak | affected |
|
Configuration 1 [-]
|
Configuration 2 [-]
|
Configuration 3 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | |||
| flatpak-0:1.0.9-11.el7_9 | cpe:/o:redhat:enterprise_linux:7 | RHSA-2021:1002 | 2021-03-29T00:00:00Z |
| Red Hat Enterprise Linux 8 | |||
| flatpak-0:1.6.2-6.el8_3 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2021:1068 | 2021-04-06T00:00:00Z |
| Red Hat Enterprise Linux 8.1 Extended Update Support | |||
| flatpak-0:1.0.9-4.el8_1 | cpe:/a:redhat:rhel_eus:8.1 | RHSA-2021:1074 | 2021-04-06T00:00:00Z |
| Red Hat Enterprise Linux 8.2 Extended Update Support | |||
| flatpak-0:1.6.2-5.el8_2 | cpe:/a:redhat:rhel_eus:8.2 | RHSA-2021:1073 | 2021-04-06T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
Debian DSA |
DSA-4868-1 | flatpak security update |
EUVD |
EUVD-2021-8687 | 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`. |
Ubuntu USN |
USN-4951-1 | Flatpak vulnerability |
No CVSS v4.0
No CVSS v3.0
This CVE is not in the KEV list.
Exploit prediction score: 1.5% (1.546% probability within 30 days)
Key SSVC decision points have not yet been added.
No history.