CVE-2021-21261: debian debian_linux Injection
Vulnerability summary
CVE-2021-21261 is a high (CVSS 8.8) Injection vulnerability in debian debian_linux. EPSS estimates a 0.60% chance of exploitation in the next 30 days, higher than 47.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 3Timeline
- 14-01-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. A bug was discovered in the `flatpak-portal` service that can allow sandboxed applications to execute arbitrary code on the host system (a sandbox escape). This sandbox-escape bug is present in versions from 0.11.4 and before fixed versions 1.8.5 and 1.10.0. The Flatpak portal D-Bus service (`flatpak-portal`, also known by its D-Bus service name `org.freedesktop.portal.Flatpak`) allows apps in a Flatpak sandbox to launch their own subprocesses in a new sandbox instance, either with the same security settings as the caller or with more restrictive security settings. For example, this is used in Flatpak-packaged web browsers such as Chromium to launch subprocesses that will process untrusted web content, and give those subprocesses a more restrictive sandbox than the browser itself. In vulnerable versions, the Flatpak portal service passes caller-specified environment variables to non-sandboxed processes on the host system, and in particular to the `flatpak run` command that is used to launch the new sandbox instance. A malicious or compromised Flatpak app could set environment variables that are trusted by the `flatpak run` command, and use them to execute arbitrary code that is not in a sandbox. As a workaround, this vulnerability can be mitigated by preventing the `flatpak-portal` service from starting, but that mitigation will prevent many Flatpak apps from working correctly. This is fixed in versions 1.8.5 and 1.10.0.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:NDiffers
- OSV · Red hatEcosystem advisory · calculated8.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:NDiffers
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
0.60%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
+0.03 pp
From 0.57% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat11 products
- flatpak< 0:1.6.2-5.el8_3 | < 0:1.0.9-3.el8_1 | < 0:1.6.2-4.el8_2 | < 0:1.0.9-10.el7_9
- flatpak-builder< 0:1.0.0-10.el7_9
- flatpak-debuginfo< 0:1.6.2-5.el8_3 | < 0:1.0.9-3.el8_1 | < 0:1.6.2-4.el8_2 | < 0:1.0.9-10.el7_9
- flatpak-debugsource< 0:1.6.2-5.el8_3 | < 0:1.0.9-3.el8_1 | < 0:1.6.2-4.el8_2
- flatpak-devel< 0:1.0.9-10.el7_9
Suse5 products
- flatpak&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP2< 1.10.2-4.6.1
- libostree&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2< 2020.8-3.3.2
- libostree&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP2< 2020.8-3.3.2
- xdg-desktop-portal-gtk&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP2< 1.8.0-3.3.1
- xdg-desktop-portal&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP2< 1.8.0-5.3.2
Opensuse4 products
- flatpak&distro=openSUSE Leap 15.2< 1.10.2-lp152.3.6.1
- libostree&distro=openSUSE Leap 15.2< 2020.8-lp152.2.3.1
- xdg-desktop-portal-gtk&distro=openSUSE Leap 15.2< 1.8.0-lp152.2.3.1
- xdg-desktop-portal&distro=openSUSE Leap 15.2< 1.8.0-lp152.4.3.1
Debian2 products
- flatpak< 1.8.5-1 | < 1.2.5-0+deb10u2
- debian_linuxEOL10.0
Flatpak1 product
- flatpak≥ 1.9.0, < 1.10.0 | ≥ 0.11.4, < 1.8.5 | ≥ 1.9.1, < 1.10.0
Ubuntu1 product
- flatpak< 1.0.9-0ubuntu0.2 | < 1.6.5-0ubuntu0.2
6 vendors · 24 products
References
31 links- github.com/flatpak/flatpak/security/advisories/GHSA-4ppf-fxf6-vxg2X Refsource CONFIRMARTICLEREPORTThird Party Advisory
- github.com/flatpak/flatpak/commit/6d1773d2a54dde9b099043f07a2094a4f1c2f486X Refsource MISCPatchThird Party Advisory
- github.com/flatpak/flatpak/commit/6e5ae7a109cdfa9735ea7ccbd8cb79f9e8d3ae8bX Refsource MISCPatchThird Party Advisory
- github.com/flatpak/flatpak/commit/aeb6a7ab0abaac4a8f4ad98b3df476d9de6b8bd4X Refsource MISCPatchThird Party Advisory
- github.com/flatpak/flatpak/commit/cc1401043c075268ecc652eac557ef8076b5eabaX Refsource MISCThird Party Advisory
Show all 31 references
- lists.opensuse.org/archives/…Advisory