{"api_version":"1","generated_at":"2026-04-12T00:28:30+00:00","cve":"CVE-2022-21682","urls":{"html":"https://cve.report/CVE-2022-21682","api":"https://cve.report/api/cve/CVE-2022-21682.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21682","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21682"},"summary":{"title":"CVE-2022-21682","description":"Flatpak is a Linux application sandboxing and distribution framework. A path traversal vulnerability affects versions of Flatpak prior to 1.12.3 and 1.10.6. flatpak-builder applies `finish-args` last in the build. At this point the build directory will have the full access that is specified in the manifest, so running `flatpak build` against it will gain those permissions. Normally this will not be done, so this is not problem. However, if `--mirror-screenshots-url` is specified, then flatpak-builder will launch `flatpak build --nofilesystem=host appstream-utils mirror-screenshots` after finalization, which can lead to issues even with the `--nofilesystem=host` protection. In normal use, the only issue is that these empty directories can be created wherever the user has write permissions. However, a malicious application could replace the `appstream-util` binary and potentially do something more hostile. This has been resolved in Flatpak 1.12.3 and 1.10.6 by changing the behaviour of `--nofilesystem=home` and `--nofilesystem=host`.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-01-13 21:15:00","updated_at":"2023-12-23 10:15:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/flatpak/flatpak/commit/4d11f77aa7fd3e64cfa80af89d92567ab9e8e6fa","name":"https://github.com/flatpak/flatpak/commit/4d11f77aa7fd3e64cfa80af89d92567ab9e8e6fa","refsource":"MISC","tags":[],"title":"manpages: Document the new details of --nofilesystem behaviour. · flatpak/flatpak@4d11f77 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/flatpak/flatpak/security/advisories/GHSA-8ch7-5j3h-g4fx","name":"https://github.com/flatpak/flatpak/security/advisories/GHSA-8ch7-5j3h-g4fx","refsource":"CONFIRM","tags":[],"title":"CVE-2022-21682: flatpak-builder --mirror-screenshots-url can access files outside the build directory · Advisory · flatpak/flatpak · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IXKBERLJRYV7KXKGXOLI6IOXVBQNN4DP/","name":"FEDORA-2022-7e328bd66c","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: flatpak-builder-1.2.2-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"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://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://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IXKBERLJRYV7KXKGXOLI6IOXVBQNN4DP/","name":"FEDORA-2022-7e328bd66c","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: flatpak-builder-1.2.2-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/flatpak/flatpak/commit/445bddeee657fdc8d2a0a1f0de12975400d4fc1a","name":"https://github.com/flatpak/flatpak/commit/445bddeee657fdc8d2a0a1f0de12975400d4fc1a","refsource":"MISC","tags":[],"title":"Make --nofilesystem=host/home remove access to subdirs of those · flatpak/flatpak@445bdde · 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://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-2022-21682","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21682","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"21682","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":"2022","cve_id":"21682","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":"2022","cve_id":"21682","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":"2022","cve_id":"21682","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":"2022","cve_id":"21682","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"flatpak","cpe5":"flatpak","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21682","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"flatpak","cpe5":"flatpak-builder","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21682","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-2022-21682","qid":"160236","title":"Oracle Enterprise Linux Security Update for flatpak-builder (ELSA-2022-7458)"},{"cve":"CVE-2022-21682","qid":"179013","title":"Debian Security Update for flatpak (DSA 5049-1)"},{"cve":"CVE-2022-21682","qid":"240858","title":"Red Hat Update for flatpak-builder (RHSA-2022:7458)"},{"cve":"CVE-2022-21682","qid":"282251","title":"Fedora Security Update for flatpak (FEDORA-2022-825ca6bf2b)"},{"cve":"CVE-2022-21682","qid":"282287","title":"Fedora Security Update for flatpak (FEDORA-2022-7e328bd66c)"},{"cve":"CVE-2022-21682","qid":"282319","title":"Fedora Security Update for flatpak (FEDORA-2022-8c64cb0992)"},{"cve":"CVE-2022-21682","qid":"354313","title":"Amazon Linux Security Advisory for flatpak : ALAS2022-2022-179"},{"cve":"CVE-2022-21682","qid":"354489","title":"Amazon Linux Security Advisory for flatpak : ALAS2022-2022-021"},{"cve":"CVE-2022-21682","qid":"377898","title":"Alibaba Cloud Linux Security Update for flatpak-builder (ALINUX3-SA-2023:0004)"},{"cve":"CVE-2022-21682","qid":"502085","title":"Alpine Linux Security Update for flatpak"},{"cve":"CVE-2022-21682","qid":"502286","title":"Alpine Linux Security Update for flatpak-builder"},{"cve":"CVE-2022-21682","qid":"671417","title":"EulerOS Security Update for flatpak (EulerOS-SA-2022-1343)"},{"cve":"CVE-2022-21682","qid":"710812","title":"Gentoo Linux Flatpak Multiple Vulnerabilities (GLSA 202312-12)"},{"cve":"CVE-2022-21682","qid":"751803","title":"SUSE Enterprise Linux Security Update for flatpak (SUSE-SU-2022:0712-1)"},{"cve":"CVE-2022-21682","qid":"751816","title":"OpenSUSE Security Update for flatpak (openSUSE-SU-2022:0712-1)"},{"cve":"CVE-2022-21682","qid":"940771","title":"AlmaLinux Security Update for flatpak-builder (ALSA-2022:7458)"},{"cve":"CVE-2022-21682","qid":"960384","title":"Rocky Linux Security Update for flatpak-builder (RLSA-2022:7458)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-21682","STATE":"PUBLIC","TITLE":"flatpak-builder can access files outside the build directory."},"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. A path traversal vulnerability affects versions of Flatpak prior to 1.12.3 and 1.10.6. flatpak-builder applies `finish-args` last in the build. At this point the build directory will have the full access that is specified in the manifest, so running `flatpak build` against it will gain those permissions. Normally this will not be done, so this is not problem. However, if `--mirror-screenshots-url` is specified, then flatpak-builder will launch `flatpak build --nofilesystem=host appstream-utils mirror-screenshots` after finalization, which can lead to issues even with the `--nofilesystem=host` protection. In normal use, the only issue is that these empty directories can be created wherever the user has write permissions. However, a malicious application could replace the `appstream-util` binary and potentially do something more hostile. This has been resolved in Flatpak 1.12.3 and 1.10.6 by changing the behaviour of `--nofilesystem=home` and `--nofilesystem=host`."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://github.com/flatpak/flatpak/security/advisories/GHSA-8ch7-5j3h-g4fx","refsource":"CONFIRM","url":"https://github.com/flatpak/flatpak/security/advisories/GHSA-8ch7-5j3h-g4fx"},{"name":"https://github.com/flatpak/flatpak/commit/445bddeee657fdc8d2a0a1f0de12975400d4fc1a","refsource":"MISC","url":"https://github.com/flatpak/flatpak/commit/445bddeee657fdc8d2a0a1f0de12975400d4fc1a"},{"name":"https://github.com/flatpak/flatpak/commit/4d11f77aa7fd3e64cfa80af89d92567ab9e8e6fa","refsource":"MISC","url":"https://github.com/flatpak/flatpak/commit/4d11f77aa7fd3e64cfa80af89d92567ab9e8e6fa"},{"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"},{"refsource":"FEDORA","name":"FEDORA-2022-7e328bd66c","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IXKBERLJRYV7KXKGXOLI6IOXVBQNN4DP/"}]},"source":{"advisory":"GHSA-8ch7-5j3h-g4fx","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-01-13 21:15:00","lastModifiedDate":"2023-12-23 10:15:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:flatpak:flatpak-builder:*:*:*:*:*:*:*:*","versionEndExcluding":"1.2.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*","versionEndExcluding":"1.10.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:flatpak:flatpak:*:*:*:*:*:*:*:*","versionStartIncluding":"1.11.1","versionEndExcluding":"1.12.4","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":"2022","CveId":"21682","Ordinal":"221471","Title":"CVE-2022-21682","CVE":"CVE-2022-21682","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"21682","Ordinal":"1","NoteData":"Flatpak is a Linux application sandboxing and distribution framework. A path traversal vulnerability affects versions of Flatpak prior to 1.12.3 and 1.10.6. flatpak-builder applies `finish-args` last in the build. At this point the build directory will have the full access that is specified in the manifest, so running `flatpak build` against it will gain those permissions. Normally this will not be done, so this is not problem. However, if `--mirror-screenshots-url` is specified, then flatpak-builder will launch `flatpak build --nofilesystem=host appstream-utils mirror-screenshots` after finalization, which can lead to issues even with the `--nofilesystem=host` protection. In normal use, the only issue is that these empty directories can be created wherever the user has write permissions. However, a malicious application could replace the `appstream-util` binary and potentially do something more hostile. This has been resolved in Flatpak 1.12.3 and 1.10.6 by changing the behaviour of `--nofilesystem=home` and `--nofilesystem=host`.","Type":"Description","Title":null},{"CveYear":"2022","CveId":"21682","Ordinal":"2","NoteData":"2022-01-13","Type":"Other","Title":"Published"},{"CveYear":"2022","CveId":"21682","Ordinal":"3","NoteData":"2022-01-26","Type":"Other","Title":"Modified"}]}}}