CVE-2021-21381: debian debian_linux Injection
Vulnerability summary
CVE-2021-21381 is a high (CVSS 8.2) Injection vulnerability in debian debian_linux. EPSS estimates a 1.55% chance of exploitation in the next 30 days, higher than 74.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 11-03-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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`.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:NDiffers
- OSV · Red hatEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:NDiffers
- OSV · DebianEcosystem advisory · calculated8.2HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
EPSS trend
Probability
1.55%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
0.00 pp
From 1.55% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat11 products
- flatpak< 0:1.0.9-11.el7_9 | < 0:1.6.2-6.el8_3 | < 0:1.6.2-5.el8_2 | < 0:1.0.9-4.el8_1
- flatpak-builder< 0:1.0.0-11.el7_9
- flatpak-debuginfo< 0:1.0.9-11.el7_9 | < 0:1.6.2-6.el8_3 | < 0:1.6.2-5.el8_2 | < 0:1.0.9-4.el8_1
- flatpak-debugsource< 0:1.6.2-6.el8_3 | < 0:1.6.2-5.el8_2 | < 0:1.0.9-4.el8_1
- flatpak-devel< 0:1.0.9-11.el7_9
Debian2 products
- flatpak< 1.10.1-4 | < 1.2.5-0+deb10u4
- debian_linuxEOL10.0
Fedoraproject1 product
- fedoraEOL33 | 34
Flatpak1 product
- flatpak≥ 0.9.4, < 1.10.2
Mageia1 product
- flatpak< 1.10.2-1.mga8
Ubuntu1 product
- flatpak< 1.0.9-0ubuntu0.3 | < 1.6.5-0ubuntu0.3
6 vendors · 17 products
References
29 links- github.com/flatpak/flatpak/security/advisories/GHSA-xgh4-387p-hqppAdvisoryARTICLEREPORTThird Party Advisory
- github.com/flatpak/flatpak/commit/8279c5818425b6812523e3805bbe242fb6a5d961REPORTPatchThird Party Advisory
- github.com/flatpak/flatpak/commit/a7401e638bf0c03102039e216ab1081922f140aeREPORTPatchThird Party Advisory
- github.com/flatpak/flatpak/commit/eb7946bb6248923d8c90fe9b84425fef97ae580dREPORTPatchThird Party Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- security.gentoo.org/glsa/202312-12Vendor Advisory