CVE-2021-43860 | Permissions granted to applications can be hidden from the user at install time

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 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-43860 is rated Moderate Risk (57.7/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.35%). Core evidence: EPSS rose +1.18% over the last day, indicating growing attacker interest. Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2021-43860

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.17% 1.35% +1.18%
2 2026-01-23 0.13% 0.17% +0.03%
3 2026-01-20 0.13%

Full EPSS history (17 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-43860

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.2 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
1.8 5.8 [email protected]
8.6 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 6.0 [email protected]
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 6.4 [email protected]

Weakness enumeration for CVE-2021-43860

OS Trackers for CVE-2021-43860

vendor priority summary link
alpine CVE-2021-43860: 1 source package rows (flatpak); 14 state rows across 7 repos (3.17-community, 3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 7, open 7. https://security.alpinelinux.org/vuln/CVE-2021-43860
debian not yet assigned CVE-2021-43860 not yet assigned priority: Debian including 1 source packages (flatpak), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2021-43860
gentoo high CVE-2021-43860: 1 GLSA(s) (202312-12), 1 atom(s) (sys-apps/flatpak); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-43860
redhat medium https://access.redhat.com/security/cve/CVE-2021-43860
suse high CVE-2021-43860 severity important: SUSE including 63 source package names (flatpak, flatpak-1.10.7-4.12.1, …), 175 product×package rows across 31 product lines (SUSE CaaS Platform 4.0, SUSE Enterprise Storage 6, … (31 product lines)): Fixed 156, Will Not Fix 13, Known Not Affected 6. https://www.suse.com/security/cve/CVE-2021-43860/
ubuntu medium CVE-2021-43860 medium priority: Ubuntu including 1 source packages (flatpak), 15 status rows across 15 suites (bionic, focal, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 6, ignored 5, needs-triage 3, released 1. https://ubuntu.com/security/CVE-2021-43860

Affected software / configurations for CVE-2021-43860

Vendor Product Version Raw CPE
flatpak flatpak < 1.10.6 cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*
flatpak flatpak >= 1.11.1, <= 1.12.3 cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
redhat enterprise_linux 8.0 cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
debian debian_linux 11.0 cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

References for CVE-2021-43860

URL Tags
https://github.com/flatpak/flatpak/commit/54ec1a482dfc668127eaae57f135e6a8e0bc52da Patch Third Party Advisory
https://github.com/flatpak/flatpak/commit/65cbfac982cb1c83993a9e19aa424daee8e9f042 Patch Third Party Advisory
https://github.com/flatpak/flatpak/commit/93357d357119093804df05acc32ff335839c6451 Patch Third Party Advisory
https://github.com/flatpak/flatpak/commit/ba818f504c926baaf6e362be8159cfacf994310e Patch Third Party Advisory
https://github.com/flatpak/flatpak/commit/d9a8f9d8ccc0b7c1135d0ecde006a75d25f66aee Patch Third Party Advisory
https://github.com/flatpak/flatpak/releases/tag/1.10.6 Release Notes Third Party Advisory
https://github.com/flatpak/flatpak/releases/tag/1.12.3 Release Notes Third Party Advisory
https://github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-572j Patch Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APFTBYGJJVJPFVHRXUW5PII5XOAFI4KH/
https://security.gentoo.org/glsa/202312-12
https://www.debian.org/security/2022/dsa-5049 Third Party Advisory
cvelogic Threat Intelligence