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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.44% (percentile 73, 2026-11-26)
- **CWE:** CWE-269
- **Published:** 2022-01-12T00:00:00.000Z
- **Modified:** 2026-06-17T04:11:35.547Z

## Who should check

- Anyone running flatpak \>= 1.11.0, \< 1.12.3; \< 1.10.6

## 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.

## Affected and fixed versions

- flatpak: \>= 1.11.0, \< 1.12.3; \< 1.10.6 (cvelist)

## Mitigation

- Upgrade flatpak to 1.10.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-43860. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-43860.md
Affected: flatpak >= 1.11.0, < 1.12.3; < 1.10.6
Fixed in: flatpak 1.12.3, flatpak 1.10.6

Steps:
1. Search this machine and project for flatpak: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-43860 being exploited?

There is no confirmed exploitation: CVE-2021-43860 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-43860?

High: CVSS 8.2 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2021-43860?

flatpak \>= 1.11.0, \< 1.12.3; \< 1.10.6.

### Is there a fix for CVE-2021-43860?

Yes. Fixed in flatpak 1.12.3, flatpak 1.10.6. Upgrade flatpak to 1.10.6 or later.

### How do I check if I'm affected by CVE-2021-43860?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-572j>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APFTBYGJJVJPFVHRXUW5PII5XOAFI4KH/>
- vendor: <https://www.debian.org/security/2022/dsa-5049>
- vendor: <https://security.gentoo.org/glsa/202312-12>
- patch: <https://github.com/flatpak/flatpak/commit/54ec1a482dfc668127eaae57f135e6a8e0bc52da>
- patch: <https://github.com/flatpak/flatpak/commit/65cbfac982cb1c83993a9e19aa424daee8e9f042>
- patch: <https://github.com/flatpak/flatpak/commit/93357d357119093804df05acc32ff335839c6451>
- patch: <https://github.com/flatpak/flatpak/commit/ba818f504c926baaf6e362be8159cfacf994310e>
- patch: <https://github.com/flatpak/flatpak/commit/d9a8f9d8ccc0b7c1135d0ecde006a75d25f66aee>
- other: <https://github.com/flatpak/flatpak/releases/tag/1.10.6>
- other: <https://github.com/flatpak/flatpak/releases/tag/1.12.3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-43860>

HTML: <https://flawdb.com/CVE-2021-43860> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-43860>
