Upstream information

CVE-2022-21682 at MITRE

Description

Flatpak is a Linux application sandboxing and distribution framework. A path traversal vulnerability affects versions of Flatpak prior to 1.12.3 and 1.10.6. flatpak-builder applies `finish-args` last in the build. At this point the build directory will have the full access that is specified in the manifest, so running `flatpak build` against it will gain those permissions. Normally this will not be done, so this is not problem. However, if `--mirror-screenshots-url` is specified, then flatpak-builder will launch `flatpak build --nofilesystem=host appstream-utils mirror-screenshots` after finalization, which can lead to issues even with the `--nofilesystem=host` protection. In normal use, the only issue is that these empty directories can be created wherever the user has write permissions. However, a malicious application could replace the `appstream-util` binary and potentially do something more hostile. This has been resolved in Flatpak 1.12.3 and 1.10.6 by changing the behaviour of `--nofilesystem=home` and `--nofilesystem=host`.

SUSE information

Overall state of this security issue: Pending

This issue is currently rated as having moderate severity.

CVSS v2 Scores
  National Vulnerability Database
Base Score 4
Vector AV:N/AC:L/Au:S/C:N/I:P/A:N
Access Vector Network
Access Complexity Low
Authentication Single
Confidentiality Impact None
Integrity Impact Partial
Availability Impact None
CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 6.5 6.5
Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Access Vector Network Local
Access Complexity Low Low
Privileges Required Low Low
User Interaction None None
Scope Unchanged Changed
Confidentiality Impact None None
Integrity Impact High High
Availability Impact None None
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entries: 1194611 [NEW], 1194703 [RESOLVED / DUPLICATE]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
SUSE Enterprise Storage 7
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-Storage-7-2022-712
SUSE Linux Enterprise Desktop 15 SP3
SUSE Linux Enterprise High Performance Computing 15 SP3
SUSE Linux Enterprise Module for Desktop Applications 15 SP3
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server for SAP Applications 15 SP3
SUSE Linux Enterprise Storage 7.1
SUSE Manager Proxy 4.2
SUSE Manager Retail Branch Server 4.2
SUSE Manager Server 4.2
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Module-Desktop-Applications-15-SP3-2022-712
SUSE Linux Enterprise Desktop 15 SP4
SUSE Linux Enterprise High Performance Computing 15 SP4
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applications 15 SP4
SUSE Manager Proxy 4.3
SUSE Manager Retail Branch Server 4.3
SUSE Manager Server 4.3
  • flatpak >= 1.12.5-150400.1.11
  • flatpak-builder >= 1.2.2-150400.1.9
  • flatpak-devel >= 1.12.5-150400.1.11
  • flatpak-zsh-completion >= 1.12.5-150400.1.11
  • libflatpak0 >= 1.12.5-150400.1.11
  • system-user-flatpak >= 1.12.5-150400.1.11
  • typelib-1_0-Flatpak-1_0 >= 1.12.5-150400.1.11
Patchnames:
SUSE Linux Enterprise Module for Desktop Applications 15 SP4 GA flatpak-1.12.5-150400.1.11
SUSE Linux Enterprise Module for Development Tools 15 SP4 GA flatpak-builder-1.2.2-150400.1.9
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Product-HPC-15-SP2-ESPOS-2022-712
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Product-HPC-15-SP2-LTSS-2022-712
SUSE Linux Enterprise Module for Desktop Applications 15 SP4
  • flatpak >= 1.12.5-150400.1.11
  • flatpak-devel >= 1.12.5-150400.1.11
  • flatpak-zsh-completion >= 1.12.5-150400.1.11
  • libflatpak0 >= 1.12.5-150400.1.11
  • system-user-flatpak >= 1.12.5-150400.1.11
  • typelib-1_0-Flatpak-1_0 >= 1.12.5-150400.1.11
Patchnames:
SUSE Linux Enterprise Module for Desktop Applications 15 SP4 GA flatpak-1.12.5-150400.1.11
SUSE Linux Enterprise Module for Development Tools 15 SP4
  • flatpak-builder >= 1.2.2-150400.1.9
Patchnames:
SUSE Linux Enterprise Module for Development Tools 15 SP4 GA flatpak-builder-1.2.2-150400.1.9
SUSE Linux Enterprise Real Time 15 SP2
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Product-RT-15-SP2-2022-712
SUSE Linux Enterprise Server 15 SP2-BCL
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Product-SLES-15-SP2-BCL-2022-712
SUSE Linux Enterprise Server 15 SP2-LTSS
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Product-SLES-15-SP2-LTSS-2022-712
SUSE Linux Enterprise Server for SAP Applications 15 SP2
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Product-SLES_SAP-15-SP2-2022-712
SUSE Manager Proxy 4.1
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Product-SUSE-Manager-Proxy-4.1-2022-712
SUSE Manager Retail Branch Server 4.1
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Product-SUSE-Manager-Retail-Branch-Server-4.1-2022-712
SUSE Manager Server 4.1
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
SUSE-SLE-Product-SUSE-Manager-Server-4.1-2022-712
openSUSE Leap 15.3
  • flatpak >= 1.10.7-4.12.1
  • flatpak-devel >= 1.10.7-4.12.1
  • flatpak-zsh-completion >= 1.10.7-4.12.1
  • libflatpak0 >= 1.10.7-4.12.1
  • system-user-flatpak >= 1.10.7-4.12.1
  • typelib-1_0-Flatpak-1_0 >= 1.10.7-4.12.1
Patchnames:
openSUSE-SLE-15.3-2022-712
openSUSE Leap 15.4
  • flatpak >= 1.12.5-150400.1.11
  • libflatpak0 >= 1.12.5-150400.1.11
  • system-user-flatpak >= 1.12.5-150400.1.11
Patchnames:
openSUSE Leap 15.4 GA flatpak-1.12.5-150400.1.11
openSUSE Tumbleweed
  • flatpak >= 1.12.4-1.1
  • flatpak-builder >= 1.2.2-1.1
  • flatpak-devel >= 1.12.4-1.1
  • flatpak-zsh-completion >= 1.12.4-1.1
  • libflatpak0 >= 1.12.4-1.1
  • system-user-flatpak >= 1.12.4-1.1
  • typelib-1_0-Flatpak-1_0 >= 1.12.4-1.1
Patchnames:
openSUSE Tumbleweed GA flatpak-1.12.4-1.1
openSUSE Tumbleweed GA flatpak-builder-1.2.2-1.1


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.

Product(s) Source package State
SUSE CaaS Platform 4.0 flatpak Affected
SUSE Enterprise Storage 6 flatpak Affected
SUSE Enterprise Storage 7 flatpak Released
SUSE Linux Enterprise Desktop 15 SP2 flatpak Released
SUSE Linux Enterprise Desktop 15 SP3 flatpak Released
SUSE Linux Enterprise Desktop 15 SP4 flatpak Already fixed
SUSE Linux Enterprise Desktop 15 SP4 flatpak-builder Already fixed
SUSE Linux Enterprise High Performance Computing 15 LTSS flatpak Affected
SUSE Linux Enterprise High Performance Computing 15 SP1 ESPOS flatpak Affected
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS flatpak Affected
SUSE Linux Enterprise High Performance Computing 15 SP2 flatpak Released
SUSE Linux Enterprise High Performance Computing 15 SP2 ESPOS flatpak Released
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS flatpak Released
SUSE Linux Enterprise High Performance Computing 15 SP3 flatpak Released
SUSE Linux Enterprise High Performance Computing 15 SP4 flatpak Already fixed
SUSE Linux Enterprise High Performance Computing 15 SP4 flatpak-builder Already fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP2 flatpak Released
SUSE Linux Enterprise Module for Desktop Applications 15 SP3 flatpak Released
SUSE Linux Enterprise Module for Desktop Applications 15 SP4 flatpak Already fixed
SUSE Linux Enterprise Module for Development Tools 15 SP4 flatpak-builder Already fixed
SUSE Linux Enterprise Real Time 15 SP2 flatpak Released
SUSE Linux Enterprise Server 15 ESPOS flatpak Affected
SUSE Linux Enterprise Server 15 LTSS flatpak Affected
SUSE Linux Enterprise Server 15 SP1 LTSS flatpak Affected
SUSE Linux Enterprise Server 15 SP2 flatpak Released
SUSE Linux Enterprise Server 15 SP2 LTSS flatpak Released
SUSE Linux Enterprise Server 15 SP3 flatpak Released
SUSE Linux Enterprise Server 15 SP4 flatpak Already fixed
SUSE Linux Enterprise Server 15 SP4 flatpak-builder Already fixed
SUSE Linux Enterprise Server Business Critical Linux 15 SP1 flatpak Affected
SUSE Linux Enterprise Server Business Critical Linux 15 SP2 flatpak Released
SUSE Linux Enterprise Server for SAP Applications 15 flatpak Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 flatpak Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP2 flatpak Released
SUSE Linux Enterprise Server for SAP Applications 15 SP3 flatpak Released
SUSE Linux Enterprise Server for SAP Applications 15 SP4 flatpak Already fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP4 flatpak-builder Already fixed
SUSE Linux Enterprise Storage 7 flatpak Released
SUSE Linux Enterprise Storage 7.1 flatpak Released
SUSE Manager Proxy 4.1 flatpak Released
SUSE Manager Proxy 4.2 flatpak Released
SUSE Manager Proxy 4.3 flatpak Already fixed
SUSE Manager Proxy 4.3 flatpak-builder Already fixed
SUSE Manager Retail Branch Server 4.1 flatpak Released
SUSE Manager Retail Branch Server 4.2 flatpak Released
SUSE Manager Retail Branch Server 4.3 flatpak Already fixed
SUSE Manager Retail Branch Server 4.3 flatpak-builder Already fixed
SUSE Manager Server 4.1 flatpak Released
SUSE Manager Server 4.2 flatpak Released
SUSE Manager Server 4.3 flatpak Already fixed
SUSE Manager Server 4.3 flatpak-builder Already fixed