CVE-2021-43860
Published on: Not Yet Published
Last Modified on: 02/10/2022 03:03:00 PM UTC
Certain versions of Debian Linux from Debian contain the following vulnerability:
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.
- CVE-2021-43860 has been assigned by
[email protected] to track the vulnerability - currently rated as HIGH severity.
- Affected Vendor/Software:
flatpak - flatpak version >= 1.11.0, < 1.12.3
- Affected Vendor/Software:
flatpak - flatpak version < 1.10.6
CVSS3 Score: 8.6 - HIGH
Attack Vector ⓘ |
Attack Complexity |
Privileges Required |
User Interaction |
---|---|---|---|
LOCAL | LOW | NONE | REQUIRED |
Scope | Confidentiality Impact |
Integrity Impact |
Availability Impact |
CHANGED | HIGH | HIGH | HIGH |
CVSS2 Score: 6.8 - MEDIUM
Access Vector ⓘ |
Access Complexity |
Authentication |
---|---|---|
NETWORK | MEDIUM | NONE |
Confidentiality Impact |
Integrity Impact |
Availability Impact |
PARTIAL | PARTIAL | PARTIAL |
CVE References
Description | Tags ⓘ | Link |
---|---|---|
Release Release 1.12.3 · flatpak/flatpak · GitHub | github.com text/html |
![]() |
Add test for metadata validation · flatpak/[email protected] · GitHub | github.com text/html |
![]() |
Require metadata in commit also for OCI remotes · flatpak/[email protected] · GitHub | github.com text/html |
![]() |
Debian -- Security Information -- DSA-5049-1 flatpak | www.debian.org Depreciated Link text/html |
![]() |
Ensure that bundles have metadata on install · flatpak/[email protected] · GitHub | github.com text/html |
![]() |
Fix metadata file contents after null terminators being ignored · flatpak/[email protected] · GitHub | github.com text/html |
![]() |
CVE-2021-43860: Permissions granted to applications can be hidden from the user at install time · Advisory · flatpak/flatpak · GitHub | github.com text/html |
![]() |
Release Release 1.10.6 · flatpak/flatpak · GitHub | github.com text/html |
![]() |
Transaction: Fail the resolve if xa.metadata invalid or missing · flatpak/[email protected] · GitHub | github.com text/html |
![]() |
[SECURITY] Fedora 35 Update: flatpak-1.12.3-1.fc35 - package-announce - Fedora Mailing-Lists | lists.fedoraproject.org text/html |
![]() |
Related QID Numbers
- 159836 Oracle Enterprise Linux Security Update for flatpak (ELSA-2022-1792)
- 179013 Debian Security Update for flatpak (DSA 5049-1)
- 240297 Red Hat Update for flatpak (RHSA-2022:1792)
- 282251 Fedora Security Update for flatpak (FEDORA-2022-825ca6bf2b)
- 282319 Fedora Security Update for flatpak (FEDORA-2022-8c64cb0992)
- 354313 Amazon Linux Security Advisory for flatpak : ALAS2022-2022-179
- 354489 Amazon Linux Security Advisory for flatpak : ALAS2022-2022-021
- 502084 Alpine Linux Security Update for flatpak
- 751803 SUSE Enterprise Linux Security Update for flatpak (SUSE-SU-2022:0712-1)
- 751816 OpenSUSE Security Update for flatpak (openSUSE-SU-2022:0712-1)
- 752593 SUSE Enterprise Linux Security Update for flatpak (SUSE-SU-2022:3284-1)
- 940529 AlmaLinux Security Update for flatpak (ALSA-2022:1792)
- 960317 Rocky Linux Security Update for flatpak (RLSA-2022:1792)
Known Affected Configurations (CPE V2.3)
Type | Vendor | Product | Version | Update | Edition | Language |
---|---|---|---|---|---|---|
Operating System | Debian | Debian Linux | 10.0 | All | All | All |
Operating System | Debian | Debian Linux | 11.0 | All | All | All |
Operating System | Debian | Debian Linux | 9.0 | All | All | All |
Operating System | Fedoraproject | Fedora | 35 | All | All | All |
Application | Flatpak | Flatpak | All | All | All | All |
Application | Flatpak | Flatpak | All | All | All | All |
Operating System | Redhat | Enterprise Linux | 8.0 | All | All | All |
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*:
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*:
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*:
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*:
- cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*:
- cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*:
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*:
Social Mentions
Source | Title | Posted (UTC) |
---|---|---|
![]() |
CVE-2021-43860 : Flatpak is a #Linux application sandboxing and distribution framework. Prior to versions 1.12.3 an… twitter.com/i/web/status/1… | 2022-01-12 21:44:40 |
![]() |
CVE-2021-43860 | 2022-01-12 22:38:44 |