CVE-2021-21381
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 apps permissions. By putting the special tokens @@ and/or @@u in the Exec field of a Flatpak apps .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.
Risk Information
Associated Vulnerability
| Vulnerability | OS Platform |
|---|---|
| flatpak security update(DSA-4868-1) flatpak_1.2.5-0+deb10u4_amd64.deb | Linux |
| (RHSA-2021:1002) flatpak security update flatpak-1.0.9-11.el7_9.x86_64.rpm | Linux |
| (RHSA-2021:1002) flatpak security update flatpak-builder-1.0.0-11.el7_9.x86_64.rpm | Linux |
| (RHSA-2021:1002) flatpak security update flatpak-devel-1.0.9-11.el7_9.x86_64.rpm | Linux |
| (RHSA-2021:1002) flatpak security update flatpak-libs-1.0.9-11.el7_9.x86_64.rpm | Linux |
| Flatpak update (ELSA-2021-1002) flatpak-1.0.9-11.el7_9.x86_64.rpm | Linux |
| Flatpak-builder update (ELSA-2021-1002) flatpak-builder-1.0.0-11.el7_9.x86_64.rpm | Linux |
| Flatpak-devel update (ELSA-2021-1002) flatpak-devel-1.0.9-11.el7_9.x86_64.rpm | Linux |
| Flatpak-libs update (ELSA-2021-1002) flatpak-libs-1.0.9-11.el7_9.x86_64.rpm | Linux |
| Flatpak update (ELSA-2021-1068) flatpak-1.6.2-6.el8_3.x86_64.rpm | Linux |
| Flatpak-libs update (ELSA-2021-1068) flatpak-libs-1.6.2-6.el8_3.i686.rpm | Linux |
| Flatpak-libs update (ELSA-2021-1068) flatpak-libs-1.6.2-6.el8_3.x86_64.rpm | Linux |
| Flatpak-selinux update (ELSA-2021-1068) flatpak-selinux-1.6.2-6.el8_3.noarch.rpm | Linux |
| Flatpak-session-helper update (ELSA-2021-1068) flatpak-session-helper-1.6.2-6.el8_3.x86_64.rpm | Linux |
| (RHSA-2021:1068) flatpak security update flatpak-1.6.2-6.el8_3.x86_64.rpm | Linux |
| (RHSA-2021:1068) flatpak security update flatpak-debugsource-1.6.2-6.el8_3.i686.rpm | Linux |
| (RHSA-2021:1068) flatpak security update flatpak-debugsource-1.6.2-6.el8_3.x86_64.rpm | Linux |
| (RHSA-2021:1068) flatpak security update flatpak-libs-1.6.2-6.el8_3.i686.rpm | Linux |
| (RHSA-2021:1068) flatpak security update flatpak-libs-1.6.2-6.el8_3.x86_64.rpm | Linux |
| (RHSA-2021:1068) flatpak security update flatpak-selinux-1.6.2-6.el8_3.noarch.rpm | Linux |
| (RHSA-2021:1068) flatpak security update flatpak-session-helper-1.6.2-6.el8_3.x86_64.rpm | Linux |
| Application deployment framework for desktop apps (USN-4951-1) flatpak_1.0.9-0ubuntu0.3_i386.deb | Linux |
| Application deployment framework for desktop apps (USN-4951-1) flatpak_1.0.9-0ubuntu0.3_amd64.deb | Linux |
| Application deployment framework for desktop apps (USN-4951-1) flatpak_1.6.5-0ubuntu0.3_amd64.deb | Linux |
| Application deployment framework for desktop apps (USN-4951-1) flatpak_1.8.2-1ubuntu0.2_amd64.deb | Linux |
| Application deployment framework for desktop apps (USN-4951-1) libflatpak0_1.0.9-0ubuntu0.3_i386.deb | Linux |
| Application deployment framework for desktop apps (USN-4951-1) libflatpak0_1.0.9-0ubuntu0.3_amd64.deb | Linux |
| Application deployment framework for desktop apps (USN-4951-1) libflatpak0_1.6.5-0ubuntu0.3_amd64.deb | Linux |
| Application deployment framework for desktop apps (USN-4951-1) libflatpak0_1.8.2-1ubuntu0.2_amd64.deb | Linux |
Patch Details
No records foundReferences
https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234