CVE-2021-43860: Permissions granted to applications can be hidden from the user at install time
Vendor fix available · Affected: flatpak · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 73% of scored CVEs
DescriptionCVE.org
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 products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- flatpak · flatpak>= 1.11.0, < 1.12.3; < 1.10.6
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- flatpak
- Published
- January 2022
CoverageNo articles yet
No CyberSIXT article names CVE-2021-43860 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-269cwe.mitre.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorydebian.org
- Vendor advisorysecurity.gentoo.org
- github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-57github.com
- github.com/flatpak/flatpak/commit/54ec1a482dfc668127eaae57f135e6github.com
- github.com/flatpak/flatpak/commit/65cbfac982cb1c83993a9e19aa424dgithub.com
- github.com/flatpak/flatpak/commit/93357d357119093804df05acc32ff3github.com
- github.com/flatpak/flatpak/commit/ba818f504c926baaf6e362be8159cfgithub.com
- github.com/flatpak/flatpak/commit/d9a8f9d8ccc0b7c1135d0ecde006a7github.com
- github.com/flatpak/flatpak/releases/tag/1.10.6github.com
- github.com/flatpak/flatpak/releases/tag/1.12.3github.com