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

CVE-2021-43860

Fixed in a distro release EPSS 1%CVSS 8.2

Flatpak is a Linux application sandboxing and distribution framework. Prior to versions 1.12.3 and 1.10.6, Flatpak doesn't properly validate that the permissions displayed to the user for an app at install time match the actual permissions granted to the app at runtime, in the case that there's a null byte in the metadata file of an app. Therefore apps can grant themselves permissions without the consent of the user. Flatpak shows permissions to the user during install by reading them from the "xa.metadata" key in the commit metadata. This cannot contain a null terminator, because it is an untrusted GVariant. Flatpak compares these permissions to the *actual* metadata, from the "metadata" file to ensure it wasn't lied to. However, the actual metadata contents are loaded in several places where they are read as simple C-style strings. That means that, if the metadata file includes a null terminator, only the content of the file from *before* the terminator gets compared to xa.metadata. Thus, any permissions that appear in the metadata file after a null terminator are applied at runtime but not shown to the user. So maliciously crafted apps can give themselves hidden permissions. Users who have Flatpaks installed from untrusted sources are at risk in case the Flatpak has a maliciously crafted metadata file, either initially or in an update. This issue is patched in versions 1.12.3 and 1.10.6. As a workaround, users can manually check the permissions of installed apps by checking the metadata file or the xa.metadata key on the commit metadata.

Published 2022-01-12 · CVE record · OSV

Products: flatpak

Distro releases

ReleasePackageFixed in
AlmaLinux 8flatpak1.8.7-1.el8
AlmaLinux 8flatpak-devel1.8.7-1.el8
AlmaLinux 8flatpak-libs1.8.7-1.el8
AlmaLinux 8flatpak-selinux1.8.7-1.el8
AlmaLinux 8flatpak-session-helper1.8.7-1.el8
Debian 11flatpak1.10.7-0+deb11u1
Debian 12flatpak1.12.3-1
Debian 13flatpak1.12.3-1
Debian 14flatpak1.12.3-1
Red Hat Enterprise Linux 8flatpak0:1.8.7-1.el8
Red Hat Enterprise Linux 8flatpak-debuginfo0:1.8.7-1.el8
Red Hat Enterprise Linux 8flatpak-debugsource0:1.8.7-1.el8
Red Hat Enterprise Linux 8flatpak-devel0:1.8.7-1.el8
Red Hat Enterprise Linux 8flatpak-libs0:1.8.7-1.el8
Red Hat Enterprise Linux 8flatpak-libs-debuginfo0:1.8.7-1.el8
Red Hat Enterprise Linux 8flatpak-selinux0:1.8.7-1.el8
Red Hat Enterprise Linux 8flatpak-session-helper0:1.8.7-1.el8
Red Hat Enterprise Linux 8flatpak-session-helper-debuginfo0:1.8.7-1.el8
Red Hat Enterprise Linux 8flatpak-tests-debuginfo0:1.8.7-1.el8
Rocky Linux 8flatpak0:1.8.7-1.el8
SUSE Enterprise Storage 6flatpak1.2.3-150100.4.8.1
SUSE Enterprise Storage 7flatpak1.10.7-4.12.1
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOSflatpak1.2.3-150100.4.8.1
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSSflatpak1.2.3-150100.4.8.1
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOSflatpak1.10.7-4.12.1
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSSflatpak1.10.7-4.12.1
SUSE Linux Enterprise Module for Desktop Applications 15 SP3flatpak1.10.7-4.12.1
SUSE Linux Enterprise Real Time 15 SP2flatpak1.10.7-4.12.1
SUSE Linux Enterprise Server 15 SP1-BCLflatpak1.2.3-150100.4.8.1
SUSE Linux Enterprise Server 15 SP1-LTSSflatpak1.2.3-150100.4.8.1
SUSE Linux Enterprise Server 15 SP2-BCLflatpak1.10.7-4.12.1
SUSE Linux Enterprise Server 15 SP2-LTSSflatpak1.10.7-4.12.1
SUSE Linux Enterprise Server for SAP Applications 15 SP1flatpak1.2.3-150100.4.8.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2flatpak1.10.7-4.12.1
SUSE Manager Proxy 4.1flatpak1.10.7-4.12.1
SUSE Manager Retail Branch Server 4.1flatpak1.10.7-4.12.1
SUSE Manager Server 4.1flatpak1.10.7-4.12.1
Ubuntu Pro 18.04 LTSflatpakno fix
Ubuntu Pro 20.04 LTSflatpakno fix
Ubuntu Pro 22.04 LTSflatpakno fix
openSUSE Leap 15.3flatpak1.10.7-4.12.1
openSUSE Tumbleweedflatpak1.12.3-1.1