CVE-2021-21381
published high CVSS 3.1 · 7.1Sandbox escape via special tokens in .desktop file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| flatpak | — | flatpak>= 0.9.4, < 1.10.2 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1625 | Fixed | Not stated | Amazon Linux assessment |
| Debian | buster | flatpak | Advisory build | 1.2.5-0+deb10u4 | DSA-4868-1 |
| Oracle Linux | 7 | flatpakaarch64 | Advisory build | 0:1.0.9-11.el7_9 | ELSA-2021-1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpakppc64 | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| SUSE / openSUSE | SLE-15-SP1 | flatpakaarch64 | Advisory build | 1.2.3-150100.4.5.2 | SUSE-SU-2022:2990-1 |
| Ubuntu | bionic | flatpak | Advisory build | 1.0.9-0ubuntu0.3 | USN-4951-1 |
| Oracle Linux | 7 | flatpakx86_64 | Advisory build | 0:1.0.9-11.el7_9 | ELSA-2021-1002 |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 8 | flatpakaarch64 | Advisory build | 0:1.6.2-6.el8_3 | ELSA-2021-1068 |
| Oracle Linux | 8 | flatpakx86_64 | Advisory build | 0:1.6.2-6.el8_3 | ELSA-2021-1068 |
| Red Hat Enterprise Linux | RHEL-7 | flatpakppc64le | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpaks390x | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpaksrc | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpakx86_64 | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-8 | flatpakaarch64 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpakaarch64 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpakaarch64 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpakppc64le | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpakppc64le | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpakppc64le | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpaks390x | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpaks390x | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpaks390x | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpaksrc | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpaksrc | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpaksrc | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpakx86_64 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpakx86_64 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpakx86_64 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| SUSE / openSUSE | SLE-15-SP1 | flatpakppc64le | Advisory build | 1.2.3-150100.4.5.2 | SUSE-SU-2022:2990-1 |
| SUSE / openSUSE | SLE-15-SP1 | flatpaks390x | Advisory build | 1.2.3-150100.4.5.2 | SUSE-SU-2022:2990-1 |
| SUSE / openSUSE | SLE-15-SP1 | flatpakx86_64 | Advisory build | 1.2.3-150100.4.5.2 | SUSE-SU-2022:2990-1 |
| Ubuntu | focal | flatpak | Advisory build | 1.6.5-0ubuntu0.3 | USN-4951-1 |
| Oracle Linux | 7 | flatpak-builderaarch64 | Advisory build | 0:1.0.0-11.el7_9 | ELSA-2021-1002 |
| Oracle Linux | 7 | flatpak-builderx86_64 | Advisory build | 0:1.0.0-11.el7_9 | ELSA-2021-1002 |
| Oracle Linux | 7 | flatpak-develaarch64 | Advisory build | 0:1.0.9-11.el7_9 | ELSA-2021-1002 |
| Oracle Linux | 7 | flatpak-develx86_64 | Advisory build | 0:1.0.9-11.el7_9 | ELSA-2021-1002 |
| Oracle Linux | 7 | flatpak-libsaarch64 | Advisory build | 0:1.0.9-11.el7_9 | ELSA-2021-1002 |
| Oracle Linux | 7 | flatpak-libsx86_64 | Advisory build | 0:1.0.9-11.el7_9 | ELSA-2021-1002 |
| Oracle Linux | 8 | flatpak-libsaarch64 | Advisory build | 0:1.6.2-6.el8_3 | ELSA-2021-1068 |
| Oracle Linux | 8 | flatpak-libsx86_64 | Advisory build | 0:1.6.2-6.el8_3 | ELSA-2021-1068 |
| Oracle Linux | 8 | flatpak-selinuxaarch64 | Advisory build | 0:1.6.2-6.el8_3 | ELSA-2021-1068 |
| Oracle Linux | 8 | flatpak-selinuxx86_64 | Advisory build | 0:1.6.2-6.el8_3 | ELSA-2021-1068 |
| Oracle Linux | 8 | flatpak-session-helperaarch64 | Advisory build | 0:1.6.2-6.el8_3 | ELSA-2021-1068 |
| Oracle Linux | 8 | flatpak-session-helperx86_64 | Advisory build | 0:1.6.2-6.el8_3 | ELSA-2021-1068 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-builderppc64 | Advisory build | 1.0.0-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-builderppc64le | Advisory build | 1.0.0-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-builders390x | Advisory build | 1.0.0-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-builderx86_64 | Advisory build | 1.0.0-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-debuginfoppc64 | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-debuginfoppc64le | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-debuginfos390x | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-debuginfox86_64 | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-develppc64 | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-develppc64le | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-devels390x | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-develx86_64 | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-libsppc64 | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-libsppc64le | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-libss390x | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-7 | flatpak-libsx86_64 | Advisory build | 1.0.9-11.el7_9 | RHSA-2021:1002 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfoaarch64 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfoaarch64 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfoaarch64 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfoi686 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfoi686 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfoi686 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfoppc64le | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfoppc64le | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfoppc64le | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfos390x | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfos390x | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfos390x | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfox86_64 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfox86_64 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debuginfox86_64 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourceaarch64 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourceaarch64 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourceaarch64 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourcei686 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourcei686 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourcei686 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourceppc64le | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourceppc64le | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourceppc64le | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsources390x | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsources390x | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsources390x | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourcex86_64 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourcex86_64 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-debugsourcex86_64 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libsaarch64 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libsaarch64 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libsaarch64 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libsi686 | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libsi686 | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libsi686 | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libsppc64le | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libsppc64le | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libsppc64le | Advisory build | 1.6.2-6.el8_3 | RHSA-2021:1068 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libss390x | Advisory build | 1.0.9-4.el8_1 | RHSA-2021:1074 |
| Red Hat Enterprise Linux | RHEL-8 | flatpak-libss390x | Advisory build | 1.6.2-5.el8_2 | RHSA-2021:1073 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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`.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| flatpak | flatpak | >= 0.9.4, < 1.10.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
10- https://github.com/flatpak/flatpak/commit/8279c5818425b6812523e3805bbe242fb6a5d961
- https://github.com/flatpak/flatpak/commit/a7401e638bf0c03102039e216ab1081922f140ae
- https://github.com/flatpak/flatpak/commit/eb7946bb6248923d8c90fe9b84425fef97ae580d
- https://github.com/flatpak/flatpak/pull/4156
- https://github.com/flatpak/flatpak/releases/tag/1.10.2
- https://github.com/flatpak/flatpak/security/advisories/GHSA-xgh4-387p-hqpp
- FEDORA-2021-fe7decc595 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2MXXLXC2DPJ45HSMTI5MZYHMYEGQN6AA/
- FEDORA-2021-26ad138ffa https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WXNVFOIB6ZP4DGOVKAM25T6OIEP3YLGV/
- GLSA-202312-12 https://security.gentoo.org/glsa/202312-12
- DSA-4868 https://www.debian.org/security/2021/dsa-4868
Provider assertions
2GitHub_M · cna
Sandbox escape via special tokens in .desktop file
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f78b9a601cb37716d90fab99569681e32a15199d21f58443ac04e073e5623da3
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record