Skip to content
Noroxi
NVD / CVE Program· CNA GitHub_M

CVE-2021-21261: Flatpak sandbox escape via spawn portal

HighCVSS 8.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 35/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.59% (FIRST EPSS).
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: flatpak (Alpine:v3.13) 1.10.1-r0; flatpak (Debian:10) 1.2.5-0+deb10u2; flatpak (Debian:12) 1.8.5-1.

Low priority for now. Upgrade to flatpak (Alpine:v3.13) 1.10.1-r0; flatpak (Debian:10) 1.2.5-0+deb10u2; flatpak (Debian:12) 1.8.5-1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Jan 14, 2021
Updated
Jun 16, 2026
EPSS
0.5% · 49th percentile

Report tools

JSON

Action score

35

Monitor

Low priority for now.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.5%

CNA vs NVD score

NVD
8.8
CNA · GitHub_M
7.3
1.5 point gap

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-21261

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
flatpakflatpak
debiandebian linux

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • flatpak flatpak

    • >= 0.11.4, < 1.8.5, >= 1.9.0, < 1.10.0affected

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux10.0
  • flatpak flatpak0.11.4 and later · before 1.8.5
  • flatpak flatpak1.9.1 and later · before 1.10.0

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.13flatpakfrom 0.11.4 · before 1.10.1-r01.10.1-r0
Debian:10flatpakbefore 1.2.5-0+deb10u21.2.5-0+deb10u2
Debian:12flatpakbefore 1.8.5-11.8.5-1
openSUSE:Leap 15.2flatpakbefore 1.10.2-lp152.3.6.11.10.2-lp152.3.6.1
openSUSE:Leap 15.2libostreebefore 2020.8-lp152.2.3.12020.8-lp152.2.3.1
openSUSE:Leap 15.2xdg-desktop-portalbefore 1.8.0-lp152.4.3.11.8.0-lp152.4.3.1
openSUSE:Leap 15.2xdg-desktop-portal-gtkbefore 1.8.0-lp152.2.3.11.8.0-lp152.2.3.1
openSUSE:Tumbleweedflatpakbefore 1.11.3-1.21.11.3-1.2
Red Hat:enterprise_linux:7::clientflatpakbefore 0:1.0.9-10.el7_90:1.0.9-10.el7_9
Red Hat:enterprise_linux:7::clientflatpak-builderbefore 0:1.0.0-10.el7_90:1.0.0-10.el7_9
Red Hat:enterprise_linux:7::clientflatpak-debuginfobefore 0:1.0.9-10.el7_90:1.0.9-10.el7_9
Red Hat:enterprise_linux:7::clientflatpak-develbefore 0:1.0.9-10.el7_90:1.0.9-10.el7_9
Red Hat:enterprise_linux:7::clientflatpak-libsbefore 0:1.0.9-10.el7_90:1.0.9-10.el7_9
Red Hat:enterprise_linux:8::appstreamflatpakbefore 0:1.6.2-5.el8_30:1.6.2-5.el8_3
Red Hat:enterprise_linux:8::appstreamflatpak-debuginfobefore 0:1.6.2-5.el8_30:1.6.2-5.el8_3
Red Hat:enterprise_linux:8::appstreamflatpak-debugsourcebefore 0:1.6.2-5.el8_30:1.6.2-5.el8_3
Red Hat:enterprise_linux:8::appstreamflatpak-libsbefore 0:1.6.2-5.el8_30:1.6.2-5.el8_3
Red Hat:enterprise_linux:8::appstreamflatpak-libs-debuginfobefore 0:1.6.2-5.el8_30:1.6.2-5.el8_3
Red Hat:enterprise_linux:8::appstreamflatpak-selinuxbefore 0:1.6.2-5.el8_30:1.6.2-5.el8_3
Red Hat:enterprise_linux:8::appstreamflatpak-session-helperbefore 0:1.6.2-5.el8_30:1.6.2-5.el8_3
Red Hat:enterprise_linux:8::appstreamflatpak-session-helper-debuginfobefore 0:1.6.2-5.el8_30:1.6.2-5.el8_3
Red Hat:enterprise_linux:8::appstreamflatpak-tests-debuginfobefore 0:1.6.2-5.el8_30:1.6.2-5.el8_3
Red Hat:rhel_eus:8.1::appstreamflatpakbefore 0:1.0.9-3.el8_10:1.0.9-3.el8_1
Red Hat:rhel_eus:8.1::appstreamflatpak-debuginfobefore 0:1.0.9-3.el8_10:1.0.9-3.el8_1

+18

Other highest-scoring records for the same primary product.

  • CVE-2024-42472Flatpak may allow access to files outside sandbox for certain apps
    40Plan
  • CVE-2026-34078Flatpak has a complete sandbox escape leading to host file access and code execution in the host context
    38Monitor
  • CVE-2019-10063Flatpak before 1.0.8, 1.1.x and 1.2.x before 1.2.4, and 1.3.x before 1.3.1 allows a sandbox bypass.
    37Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2018-6560Feb 2, 2018 · In dbus-proxy/flatpak-proxy.c in Flatpak before 0.8.9, and 0.9.x and 0.10.x before 0.10.3, crafted D-Bus messages to the host can be used…
    35Monitor
  • ← EarlierCVE-2019-8308Feb 12, 2019 · Flatpak before 1.0.7, and 1.1.x and 1.2.x before 1.2.3, exposes /proc in the apply_extra script sandbox, which allows attackers to modify a…
    32Monitor
  • Later →CVE-2021-21381Mar 11, 2021 · Sandbox escape via special tokens in .desktop file
    32Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:flatpak1.10.1-r0 · Alpine:v3.13Package registry (OSV)
debian:flatpak1.8.5-1 · Debian:12Package registry (OSV)
opensuse:flatpak1.10.2-lp152.3.6.1 · openSUSE:Leap 15.2Package registry (OSV)
opensuse:libostree2020.8-lp152.2.3.1 · openSUSE:Leap 15.2Package registry (OSV)
opensuse:xdg-desktop-portal1.8.0-lp152.4.3.1 · openSUSE:Leap 15.2Package registry (OSV)
opensuse:xdg-desktop-portal-gtk1.8.0-lp152.2.3.1 · openSUSE:Leap 15.2Package registry (OSV)
red hat:flatpak0:1.6.2-5.el8_3 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:flatpak-builder0:1.0.0-10.el7_9 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:flatpak-debuginfo0:1.6.2-5.el8_3 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:flatpak-debugsource0:1.6.2-5.el8_3 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:flatpak-devel0:1.0.9-10.el7_9 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:flatpak-libs0:1.6.2-5.el8_3 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:flatpak-libs-debuginfo0:1.6.2-5.el8_3 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:flatpak-selinux0:1.6.2-5.el8_3 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:flatpak-session-helper0:1.6.2-5.el8_3 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:flatpak-session-helper-debuginfo0:1.6.2-5.el8_3 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:flatpak-tests-debuginfo0:1.6.2-5.el8_3 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
suse:flatpak1.10.2-4.6.1 · SUSE:Linux Enterprise Module for Desktop Applications 15 SP2Package registry (OSV)
suse:libostree2020.8-3.3.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP2Package registry (OSV)
suse:xdg-desktop-portal1.8.0-5.3.2 · SUSE:Linux Enterprise Module for Desktop Applications 15 SP2Package registry (OSV)
suse:xdg-desktop-portal-gtk1.8.0-3.3.1 · SUSE:Linux Enterprise Module for Desktop Applications 15 SP2Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

nvd-primary

References

All records