Upstream information

CVE-2021-21381 at MITRE

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

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having important severity.

CVSS v2 Scores
  National Vulnerability Database
Base Score 5.8
Vector AV:N/AC:M/Au:N/C:P/I:P/A:N
Access Vector Network
Access Complexity Medium
Authentication None
Confidentiality Impact Partial
Integrity Impact Partial
Availability Impact None
CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 8.2 8.1
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Attack Vector Local Network
Attack Complexity Low Low
Privileges Required None Low
User Interaction Required None
Scope Changed Unchanged
Confidentiality Impact High High
Integrity Impact High High
Availability Impact None None
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1183459 [RESOLVED / FIXED]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
SUSE CaaS Platform 4.0
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-SUSE-CAASP-4.0-2022-2990
SUSE Enterprise Storage 6
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-Storage-6-2022-2990
SUSE Liberty Linux 7
  • flatpak >= 1.0.9-11.el7_9
  • flatpak-builder >= 1.0.0-11.el7_9
  • flatpak-devel >= 1.0.9-11.el7_9
  • flatpak-libs >= 1.0.9-11.el7_9
Patchnames:
RHSA-2021:1002
SUSE Liberty Linux 8
  • flatpak >= 1.6.2-6.el8_3
  • flatpak-libs >= 1.6.2-6.el8_3
  • flatpak-selinux >= 1.6.2-6.el8_3
  • flatpak-session-helper >= 1.6.2-6.el8_3
Patchnames:
RHSA-2021:1068
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-SLE-Product-HPC-15-SP1-ESPOS-2022-2990
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-SLE-Product-HPC-15-SP1-LTSS-2022-2990
SUSE Linux Enterprise Server 15 SP1-BCL
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-SLE-Product-SLES-15-SP1-BCL-2022-2990
SUSE Linux Enterprise Server 15 SP1-LTSS
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-SLE-Product-SLES-15-SP1-LTSS-2022-2990
SUSE Linux Enterprise Server for SAP Applications 15 SP1
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-SLE-Product-SLES_SAP-15-SP1-2022-2990
SUSE Manager Proxy 4.0
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-SLE-Product-SUSE-Manager-Proxy-4.0-2022-2990
SUSE Manager Retail Branch Server 4.0
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-SLE-Product-SUSE-Manager-Retail-Branch-Server-4.0-2022-2990
SUSE Manager Server 4.0
  • flatpak >= 1.2.3-150100.4.5.2
  • flatpak-devel >= 1.2.3-150100.4.5.2
  • flatpak-zsh-completion >= 1.2.3-150100.4.5.2
  • libflatpak0 >= 1.2.3-150100.4.5.2
  • typelib-1_0-Flatpak-1_0 >= 1.2.3-150100.4.5.2
Patchnames:
SUSE-SLE-Product-SUSE-Manager-Server-4.0-2022-2990


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Enterprise Storage 7.1 flatpak Not affected
SUSE Linux Enterprise Real Time 15 SP3 flatpak Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP4 flatpak Not affected
SUSE Manager Proxy 4.3 flatpak Not affected
SUSE Manager Retail Branch Server 4.3 flatpak Not affected
SUSE Manager Server 4.3 flatpak Not affected
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE Linux Enterprise Desktop 15 SP4 flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 SP1 flatpak Affected
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS flatpak Released
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS flatpak Released
SUSE Linux Enterprise High Performance Computing 15 SP2 flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3 flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4 flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15-ESPOS flatpak Not affected
SUSE Linux Enterprise High Performance Computing 15-LTSS flatpak Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP2 flatpak Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP3 flatpak Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP4 flatpak Not affected
SUSE Linux Enterprise Server 15 SP2 flatpak Not affected
SUSE Linux Enterprise Server 15 SP2-LTSS flatpak Not affected
SUSE Linux Enterprise Server 15 SP3 flatpak Not affected
SUSE Linux Enterprise Server 15 SP3-LTSS flatpak Not affected
SUSE Linux Enterprise Server 15 SP4 flatpak Not affected
SUSE Linux Enterprise Server 15 SP4-LTSS flatpak Not affected
SUSE Linux Enterprise Server 15-ESPOS flatpak Not affected
SUSE Linux Enterprise Server Business Critical Linux 15 SP1 flatpak Released
SUSE Linux Enterprise Server Business Critical Linux 15 SP2 flatpak Not affected
SUSE Linux Enterprise Server for SAP Applications 15 flatpak Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 flatpak Released
SUSE Linux Enterprise Server for SAP Applications 15 SP2 flatpak Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 flatpak Not affected
Products past their end of life and not receiving proactive updates anymore.
SUSE CaaS Platform 4.0 flatpak Released
SUSE CaaS Platform 4.5 flatpak Not affected
SUSE Enterprise Storage 6 flatpak Released
SUSE Enterprise Storage 7 flatpak Not affected
SUSE Linux Enterprise Desktop 15 flatpak Not affected
SUSE Linux Enterprise Desktop 15 SP1 flatpak Affected
SUSE Linux Enterprise Desktop 15 SP2 flatpak Not affected
SUSE Linux Enterprise Desktop 15 SP3 flatpak Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 flatpak Not affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP1 flatpak Affected
SUSE Linux Enterprise Real Time 15 SP2 flatpak Not affected
SUSE Linux Enterprise Real Time 15 SP4 flatpak Not affected
SUSE Linux Enterprise Server 15 flatpak Not affected
SUSE Linux Enterprise Server 15 SP1 flatpak Affected
SUSE Linux Enterprise Server 15 SP1-BCL flatpak Released
SUSE Linux Enterprise Server 15 SP1-LTSS flatpak Released
SUSE Linux Enterprise Server 15 SP2-BCL flatpak Not affected
SUSE Linux Enterprise Server 15 SP3-BCL flatpak Not affected
SUSE Linux Enterprise Server 15-LTSS flatpak Not affected
SUSE Manager Proxy 4.0 flatpak Released
SUSE Manager Proxy 4.1 flatpak Not affected
SUSE Manager Proxy 4.2 flatpak Not affected
SUSE Manager Retail Branch Server 4.0 flatpak Released
SUSE Manager Retail Branch Server 4.1 flatpak Not affected
SUSE Manager Retail Branch Server 4.2 flatpak Not affected
SUSE Manager Server 4.0 flatpak Released
SUSE Manager Server 4.1 flatpak Not affected
SUSE Manager Server 4.2 flatpak Not affected


SUSE Timeline for this CVE

CVE page created: Fri Mar 12 04:34:23 2021
CVE page last modified: Thu Feb 22 17:16:38 2024