CVE-2021-43860 in Debian Linux and 3 more products
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 me...
Affects 4 products from 4 vendors. Facts below cite their sources.
Requires local access, low complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 9.0 10.0 11.0 |
| Fedoraproject | Fedora | 35 |
| Flatpak | Flatpak | < 1.10.6 ≥ 1.11.1, ≤ 1.12.3 |
| Redhat | Enterprise Linux | 8.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-43860 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-071492-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| Published | 2022-01-12 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-269: Improper Privilege Management
Software does not properly assign, modify, track, or check privileges, allowing unauthorized elevation of access.
CWE-276: Incorrect Default Permissions
Software sets overly permissive default access rights during installation or resource creation.
Related attack patterns (CAPEC)
CAPEC-58 Restful Privilege Elevation via CWE-269
CAPEC-81 Web Server Logs Tampering via CWE-276
CAPEC-127 Directory Indexing via CWE-276
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-276
CAPEC-122 Privilege Abuse via CWE-269
Show all 6
CAPEC-233 Privilege Escalation via CWE-269
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Flatpak versions prior to 1.12.3 and 1.10.6 are vulnerable to a permissions mismatch issue due to improper validation of app permissions at install time, allowing apps to request and receive additional permissions without user consent.
An attacker can craft a malicious Flatpak application with a null byte in its metadata file, causing the Flatpak installer to display incorrect permissions to the user. This allows the application to gain unintended permissions at runtime.
Questions
What is CVE-2021-43860?
Flatpak versions prior to 1.12.3 and 1.10.6 are vulnerable to a permissions mismatch issue due to improper validation of app permissions at install time, allowing apps to request and receive additional permissions without user consent.
What is the CVSS score for CVE-2021-43860?
CVE-2021-43860 has CVSS 8.6 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. EPSS: 1.4%.
Is CVE-2021-43860 actively exploited?
No confirmed active exploitation of CVE-2021-43860 as of 2026-09-25.
How do I remediate CVE-2021-43860?
Priority: HIGH.
What systems are affected by CVE-2021-43860?
CVE-2021-43860 affects Debian Debian Linux; Fedoraproject Fedora; Flatpak Flatpak; Redhat Enterprise Linux.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.