Patchwire CVEs, their patch status, and feeds to follow them

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`.

Published 2021-03-11 · CVE record · OSV

Products: flatpak

Distro releases

ReleasePackageFixed in
Amazon Linux 2flatpak1.0.9-10.amzn2.0.1
Amazon Linux 2flatpak-builder1.0.0-10.amzn2.0.1
Amazon Linux 2flatpak-devel1.0.9-10.amzn2.0.1
Amazon Linux 2flatpak-libs1.0.9-10.amzn2.0.1
Arch Linuxflatpak1.10.2-1
Debian 10flatpak1.2.5-0+deb10u4
Debian 12flatpak1.10.1-4
Debian 13flatpak1.10.1-4
Debian 14flatpak1.10.1-4
Red Hat Enterprise Linux 7flatpak0:1.0.9-11.el7_9
Red Hat Enterprise Linux 7flatpak-builder0:1.0.0-11.el7_9
Red Hat Enterprise Linux 7flatpak-debuginfo0:1.0.9-11.el7_9
Red Hat Enterprise Linux 7flatpak-devel0:1.0.9-11.el7_9
Red Hat Enterprise Linux 7flatpak-libs0:1.0.9-11.el7_9
Red Hat Enterprise Linux 8flatpak0:1.6.2-6.el8_3
Red Hat Enterprise Linux 8flatpak-debuginfo0:1.6.2-6.el8_3
Red Hat Enterprise Linux 8flatpak-debugsource0:1.6.2-6.el8_3
Red Hat Enterprise Linux 8flatpak-libs0:1.6.2-6.el8_3
Red Hat Enterprise Linux 8flatpak-libs-debuginfo0:1.6.2-6.el8_3
Red Hat Enterprise Linux 8flatpak-selinux0:1.6.2-6.el8_3
Red Hat Enterprise Linux 8flatpak-session-helper0:1.6.2-6.el8_3
Red Hat Enterprise Linux 8flatpak-session-helper-debuginfo0:1.6.2-6.el8_3
Red Hat Enterprise Linux 8flatpak-tests-debuginfo0:1.6.2-6.el8_3
Red Hat rhel eus 8.1flatpak0:1.0.9-4.el8_1
Red Hat rhel eus 8.1flatpak-debuginfo0:1.0.9-4.el8_1
Red Hat rhel eus 8.1flatpak-debugsource0:1.0.9-4.el8_1
Red Hat rhel eus 8.1flatpak-libs0:1.0.9-4.el8_1
Red Hat rhel eus 8.1flatpak-libs-debuginfo0:1.0.9-4.el8_1
Red Hat rhel eus 8.2flatpak0:1.6.2-5.el8_2
Red Hat rhel eus 8.2flatpak-debuginfo0:1.6.2-5.el8_2
Red Hat rhel eus 8.2flatpak-debugsource0:1.6.2-5.el8_2
Red Hat rhel eus 8.2flatpak-libs0:1.6.2-5.el8_2
Red Hat rhel eus 8.2flatpak-libs-debuginfo0:1.6.2-5.el8_2
Red Hat rhel eus 8.2flatpak-selinux0:1.6.2-5.el8_2
Red Hat rhel eus 8.2flatpak-session-helper0:1.6.2-5.el8_2
Red Hat rhel eus 8.2flatpak-session-helper-debuginfo0:1.6.2-5.el8_2
Red Hat rhel eus 8.2flatpak-tests-debuginfo0:1.6.2-5.el8_2
SUSE Enterprise Storage 6flatpak1.2.3-150100.4.5.2
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOSflatpak1.2.3-150100.4.5.2
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSSflatpak1.2.3-150100.4.5.2
SUSE Linux Enterprise Server 15 SP1-BCLflatpak1.2.3-150100.4.5.2
SUSE Linux Enterprise Server 15 SP1-LTSSflatpak1.2.3-150100.4.5.2
SUSE Linux Enterprise Server for SAP Applications 15 SP1flatpak1.2.3-150100.4.5.2
Ubuntu 18.04 LTSflatpak1.0.9-0ubuntu0.3
Ubuntu 20.04 LTSflatpak1.6.5-0ubuntu0.3