{"api_version":"1","generated_at":"2026-04-12T00:31:29+00:00","cve":"CVE-2021-43860","urls":{"html":"https://cve.report/CVE-2021-43860","api":"https://cve.report/api/cve/CVE-2021-43860.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-43860","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-43860"},"summary":{"title":"CVE-2021-43860","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-01-12 22:15:00","updated_at":"2023-12-23 10:15:00"},"problem_types":["CWE-276"],"metrics":[],"references":[{"url":"https://github.com/flatpak/flatpak/releases/tag/1.12.3","name":"https://github.com/flatpak/flatpak/releases/tag/1.12.3","refsource":"MISC","tags":[],"title":"Release Release 1.12.3 · flatpak/flatpak · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/flatpak/flatpak/commit/54ec1a482dfc668127eaae57f135e6a8e0bc52da","name":"https://github.com/flatpak/flatpak/commit/54ec1a482dfc668127eaae57f135e6a8e0bc52da","refsource":"MISC","tags":[],"title":"Add test for metadata validation · flatpak/flatpak@54ec1a4 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/flatpak/flatpak/commit/93357d357119093804df05acc32ff335839c6451","name":"https://github.com/flatpak/flatpak/commit/93357d357119093804df05acc32ff335839c6451","refsource":"MISC","tags":[],"title":"Require metadata in commit also for OCI remotes · flatpak/flatpak@93357d3 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.debian.org/security/2022/dsa-5049","name":"DSA-5049","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5049-1 flatpak","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/flatpak/flatpak/commit/65cbfac982cb1c83993a9e19aa424daee8e9f042","name":"https://github.com/flatpak/flatpak/commit/65cbfac982cb1c83993a9e19aa424daee8e9f042","refsource":"MISC","tags":[],"title":"Ensure that bundles have metadata on install · flatpak/flatpak@65cbfac · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/flatpak/flatpak/commit/ba818f504c926baaf6e362be8159cfacf994310e","name":"https://github.com/flatpak/flatpak/commit/ba818f504c926baaf6e362be8159cfacf994310e","refsource":"MISC","tags":[],"title":"Fix metadata file contents after null terminators being ignored · flatpak/flatpak@ba818f5 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-572j","name":"https://github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-572j","refsource":"CONFIRM","tags":[],"title":"CVE-2021-43860: Permissions granted to applications can be hidden from the user at install time · Advisory · flatpak/flatpak · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APFTBYGJJVJPFVHRXUW5PII5XOAFI4KH/","name":"FEDORA-2022-825ca6bf2b","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: flatpak-1.12.3-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/flatpak/flatpak/releases/tag/1.10.6","name":"https://github.com/flatpak/flatpak/releases/tag/1.10.6","refsource":"MISC","tags":[],"title":"Release Release 1.10.6 · flatpak/flatpak · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202312-12","name":"GLSA-202312-12","refsource":"","tags":[],"title":"Flatpak: Multiple Vulnerabilities (GLSA 202312-12) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/flatpak/flatpak/commit/d9a8f9d8ccc0b7c1135d0ecde006a75d25f66aee","name":"https://github.com/flatpak/flatpak/commit/d9a8f9d8ccc0b7c1135d0ecde006a75d25f66aee","refsource":"MISC","tags":[],"title":"Transaction: Fail the resolve if xa.metadata invalid or missing · flatpak/flatpak@d9a8f9d · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/APFTBYGJJVJPFVHRXUW5PII5XOAFI4KH/","name":"FEDORA-2022-825ca6bf2b","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: flatpak-1.12.3-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-43860","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43860","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"43860","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"43860","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"11.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"43860","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"43860","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"43860","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"flatpak","cpe5":"flatpak","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"43860","vulnerable":"1","versionEndIncluding":"1.12.3","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"flatpak","cpe5":"flatpak","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"43860","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-43860","qid":"159836","title":"Oracle Enterprise Linux Security Update for flatpak (ELSA-2022-1792)"},{"cve":"CVE-2021-43860","qid":"179013","title":"Debian Security Update for flatpak (DSA 5049-1)"},{"cve":"CVE-2021-43860","qid":"184374","title":"Debian Security Update for flatpak (CVE-2021-43860)"},{"cve":"CVE-2021-43860","qid":"240297","title":"Red Hat Update for flatpak (RHSA-2022:1792)"},{"cve":"CVE-2021-43860","qid":"282251","title":"Fedora Security Update for flatpak (FEDORA-2022-825ca6bf2b)"},{"cve":"CVE-2021-43860","qid":"282319","title":"Fedora Security Update for flatpak (FEDORA-2022-8c64cb0992)"},{"cve":"CVE-2021-43860","qid":"354313","title":"Amazon Linux Security Advisory for flatpak : ALAS2022-2022-179"},{"cve":"CVE-2021-43860","qid":"354489","title":"Amazon Linux Security Advisory for flatpak : ALAS2022-2022-021"},{"cve":"CVE-2021-43860","qid":"502084","title":"Alpine Linux Security Update for flatpak"},{"cve":"CVE-2021-43860","qid":"710812","title":"Gentoo Linux Flatpak Multiple Vulnerabilities (GLSA 202312-12)"},{"cve":"CVE-2021-43860","qid":"751803","title":"SUSE Enterprise Linux Security Update for flatpak (SUSE-SU-2022:0712-1)"},{"cve":"CVE-2021-43860","qid":"751816","title":"OpenSUSE Security Update for flatpak (openSUSE-SU-2022:0712-1)"},{"cve":"CVE-2021-43860","qid":"752593","title":"SUSE Enterprise Linux Security Update for flatpak (SUSE-SU-2022:3284-1)"},{"cve":"CVE-2021-43860","qid":"940529","title":"AlmaLinux Security Update for flatpak (ALSA-2022:1792)"},{"cve":"CVE-2021-43860","qid":"960317","title":"Rocky Linux Security Update for flatpak (RLSA-2022:1792)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-43860","STATE":"PUBLIC","TITLE":"Permissions granted to applications can be hidden from the user at install time"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"flatpak","version":{"version_data":[{"version_value":">= 1.11.0, < 1.12.3"},{"version_value":"< 1.10.6"}]}}]},"vendor_name":"flatpak"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-269: Improper Privilege Management"}]}]},"references":{"reference_data":[{"name":"https://github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-572j","refsource":"CONFIRM","url":"https://github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-572j"},{"name":"https://github.com/flatpak/flatpak/commit/54ec1a482dfc668127eaae57f135e6a8e0bc52da","refsource":"MISC","url":"https://github.com/flatpak/flatpak/commit/54ec1a482dfc668127eaae57f135e6a8e0bc52da"},{"name":"https://github.com/flatpak/flatpak/commit/65cbfac982cb1c83993a9e19aa424daee8e9f042","refsource":"MISC","url":"https://github.com/flatpak/flatpak/commit/65cbfac982cb1c83993a9e19aa424daee8e9f042"},{"name":"https://github.com/flatpak/flatpak/commit/93357d357119093804df05acc32ff335839c6451","refsource":"MISC","url":"https://github.com/flatpak/flatpak/commit/93357d357119093804df05acc32ff335839c6451"},{"name":"https://github.com/flatpak/flatpak/commit/ba818f504c926baaf6e362be8159cfacf994310e","refsource":"MISC","url":"https://github.com/flatpak/flatpak/commit/ba818f504c926baaf6e362be8159cfacf994310e"},{"name":"https://github.com/flatpak/flatpak/commit/d9a8f9d8ccc0b7c1135d0ecde006a75d25f66aee","refsource":"MISC","url":"https://github.com/flatpak/flatpak/commit/d9a8f9d8ccc0b7c1135d0ecde006a75d25f66aee"},{"name":"https://github.com/flatpak/flatpak/releases/tag/1.10.6","refsource":"MISC","url":"https://github.com/flatpak/flatpak/releases/tag/1.10.6"},{"name":"https://github.com/flatpak/flatpak/releases/tag/1.12.3","refsource":"MISC","url":"https://github.com/flatpak/flatpak/releases/tag/1.12.3"},{"refsource":"FEDORA","name":"FEDORA-2022-825ca6bf2b","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/APFTBYGJJVJPFVHRXUW5PII5XOAFI4KH/"},{"refsource":"DEBIAN","name":"DSA-5049","url":"https://www.debian.org/security/2022/dsa-5049"}]},"source":{"advisory":"GHSA-qpjc-vq3c-572j","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-01-12 22:15:00","lastModifiedDate":"2023-12-23 10:15:00","problem_types":["CWE-276"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.6,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*","versionEndExcluding":"1.10.6","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*","versionStartIncluding":"1.11.1","versionEndIncluding":"1.12.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"43860","Ordinal":"221293","Title":"CVE-2021-43860","CVE":"CVE-2021-43860","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"43860","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}