cve.bz

CVE-2021-43860 Incorrect Default Permissions

8.6 highEPSS 1.4%Fix available

High (8.6). EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-276 Incorrect Default Permissions
CWE-269 Improper Privilege Management
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-43860 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-43860?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-43860?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-43860 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
flatpak:flatpakbefore 1.10.6
flatpak:flatpakfrom 1.11.1 through 1.12.3
fedoraproject:fedora35
redhat:enterprise_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11flatpak1.10.7-0+deb11u1DSA-5049-1
Debian12, 13, 14flatpak1.12.3-1DEBIAN-CVE-2021-43860
UbuntuPro:18.04:LTS, Pro:20.04:LTS, Pro:22.04:LTSflatpakno fix listedUBUNTU-CVE-2021-43860
Red Hatenterprise_linux:8::appstreamflatpak, flatpak-libs, flatpak-selinux and 6 more0:1.8.7-1.el8RHSA-2022:1792
Red Hatenterprise_linux:8::crbflatpak, flatpak-devel, flatpak-debuginfo and 5 more0:1.8.7-1.el8RHSA-2022:1792
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 moreflatpak1.2.3-150100.4.8.1SUSE-SU-2022:3284-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 moreflatpak1.10.7-4.12.1SUSE-SU-2022:0712-1
openSUSELeap 15.3flatpak1.10.7-4.12.1openSUSE-SU-2022:0712-1
openSUSETumbleweedflatpak1.12.3-1.1openSUSE-SU-2024:11740-1
AlmaLinux8flatpak, flatpak-libs, flatpak-devel and 2 more1.8.7-1.el8ALSA-2022:1792
Rocky Linux8flatpak0:1.8.7-1.el8RLSA-2022:1792
Alpinev3.15, v3.16, v3.17 and 7 moreflatpak1.12.3-r0ALPINE-CVE-2021-43860

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8flatpak-0:1.8.7-1.el8Fixed 2022-05-10RHSA-2022:1792
Red Hat Enterprise Linux 7flatpakNot affected
Red Hat Enterprise Linux 9flatpakNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-43860.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium
  • CAPEC-58 Restful Privilege Elevation Likelihood: High · Severity: High
  • CAPEC-122 Privilege Abuse Likelihood: High · Severity: Medium
  • CAPEC-233 Privilege Escalation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON