CVE-2021-43860: debian debian_linux Improper Privilege Management
Vulnerability summary
CVE-2021-43860 is a high (CVSS 8.6) Improper Privilege Management vulnerability in debian debian_linux. EPSS estimates a 1.34% chance of exploitation in the next 30 days, higher than 70.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 5 · Related 3Timeline
- 12-01-2022PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA8.2HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:NDiffers
- OSV · Red hatEcosystem advisory · calculated8.2HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated8.6HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.6HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS trend
Probability
1.34%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
-0.01 pp
From 1.35% 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 cause- CWE-269Improper Privilege ManagementThe product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
- CWE-276Incorrect Default PermissionsDuring installation, installed file permissions are set to allow anyone to modify those files.
Affected systems
Redhat11 products
- enterprise_linux8.0
- flatpak< 0:1.8.7-1.el8
- flatpak-debuginfo< 0:1.8.7-1.el8
- flatpak-debugsource< 0:1.8.7-1.el8
- flatpak-devel< 0:1.8.7-1.el8
Debian2 products
- flatpak< 1.12.3-1
- debian_linuxEOL9.0 | 10.0 | 11.0
Fedoraproject1 product
- fedoraEOL35
Flatpak1 product
- flatpak≥ 1.11.0, < 1.12.3 | < 1.10.6 | ≥ 1.11.1, ≤ 1.12.3
Opensuse1 product
- flatpak&distro=openSUSE Tumbleweed< 1.12.3-1.1
Ubuntu1 product
- flatpakAll versions (No fix recorded)
6 vendors · 17 products
References
24 links- github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-572jARTICLEREPORTPatchThird Party Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
Show all 24 references
- security.gentoo.org/glsa/202312-12Vendor Advisory