{"id":"CVE-2022-21682","aliases":["ALPINE-CVE-2022-21682","ALSA-2022:7458","DEBIAN-CVE-2022-21682","DSA-5049-1","EUVD-2022-26892","GHSA-8ch7-5j3h-g4fx","MGASA-2022-0131","OESA-2022-1788","RHSA-2022:7458","RLSA-2022:7458","SUSE-SU-2022:0712-1","UBUNTU-CVE-2022-21682","openSUSE-SU-2022:0712-1","openSUSE-SU-2024:11755-1","openSUSE-SU-2024:11756-1"],"status":"published","title":"flatpak-builder can access files outside the build directory.","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`.","severity":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01841,"percentile":0.79152,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2022-01-13T00:00:00Z","modified":"2026-11-03T08:01:01Z","fixes":[{"ecosystem":"Alpine:v3.15","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"flatpak","fixed_in":["1.12.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"flatpak-builder","fixed_in":["1.2.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"flatpak-builder","fixed_in":["1.2.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"flatpak-builder","fixed_in":["1.2.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"flatpak-builder","fixed_in":["1.2.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"flatpak-builder","fixed_in":["1.2.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"flatpak-builder","fixed_in":["1.2.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"flatpak-builder","fixed_in":["1.2.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"flatpak-builder","fixed_in":["1.2.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"flatpak-builder","fixed_in":["1.2.2-r0"],"sources":["osv"]},{"ecosystem":"AlmaLinux:8","package":"flatpak-builder","fixed_in":["1.0.14-2.el8"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"flatpak","fixed_in":["1.12.3-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"flatpak","fixed_in":["1.12.3-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"flatpak","fixed_in":["1.12.3-1"],"sources":["osv"]},{"ecosystem":"openEuler:22.03-LTS","package":"flatpak-builder","fixed_in":["1.0.14-2.oe2203"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"flatpak-builder","fixed_in":["0:1.0.14-2.el8"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"flatpak-builder-debuginfo","fixed_in":["0:1.0.14-2.el8"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"flatpak-builder-debugsource","fixed_in":["0:1.0.14-2.el8"],"sources":["osv"]},{"ecosystem":"Rocky Linux:8","package":"flatpak-builder","fixed_in":["0:1.0.14-2.el8"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"flatpak-builder","fixed_in":["1.2.2-1.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"flatpak","fixed_in":["1.12.4-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.15","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.1"},{"fixed":"1.12.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-r0"}]}]},{"source":"osv","ecosystem":"AlmaLinux:8","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.14-2.el8"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.3-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.3-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.3-1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-0+deb11u1"}]}],"versions":["1.10.2-3","1.10.3-0+deb11u1","1.10.3-0+deb11u1~bpo11+1","1.10.5-0+deb11u1","1.10.5-0+deb11u1~bpo10+1","1.10.7-0+deb11u1~bpo10+1"],"bundled":2},{"source":"osv","ecosystem":"Mageia:8","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.7-1.mga8"}]}],"bundled":2},{"source":"osv","ecosystem":"Mageia:8","package":"discover","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.20.4-3.3.mga8"}]}],"bundled":2},{"source":"osv","ecosystem":"Mageia:8","package":"gnome-software","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.38.0-2.1.mga8"}]}],"bundled":2},{"source":"osv","ecosystem":"Mageia:8","package":"xdg-desktop-portal-kde","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.20.4-2.1.mga8"}]}],"bundled":2},{"source":"osv","ecosystem":"openEuler:22.03-LTS","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.14-2.oe2203"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.14-2.el8"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"flatpak-builder-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.14-2.el8"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"flatpak-builder-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.14-2.el8"}]}]},{"source":"osv","ecosystem":"Rocky Linux:8","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.14-2.el8"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15 SP3","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Real Time 15 SP2","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 15 SP2-BCL","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Manager Proxy 4.1","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Manager Retail Branch Server 4.1","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Manager Server 4.1","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Enterprise Storage 7","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.7-5","0.10.0-1","0.10.0-2","0.10.1-1","0.10.2-1","0.10.2.1-1","0.10.2.1-2","0.10.3-1","0.11.1-0ubuntu1","0.11.3-2","0.11.3-3","0.11.7-0ubuntu0.1","1.0.1-0ubuntu0.1","1.0.6-0ubuntu0.1","1.0.7-0ubuntu0.18.04.1","1.0.8-0ubuntu0.18.04.1","1.0.9-0ubuntu0.1","1.0.9-0ubuntu0.2","1.0.9-0ubuntu0.3","1.0.9-0ubuntu0.4","1.0.9-0ubuntu0.4+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.3-1","1.6.0-1","1.6.1-1","1.6.2-1","1.6.3-1","1.6.5-0ubuntu0.1","1.6.5-0ubuntu0.2","1.6.5-0ubuntu0.3","1.6.5-0ubuntu0.4","1.6.5-0ubuntu0.5","1.6.5-0ubuntu0.5+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.2-3","1.12.2-1","1.12.2-2","1.12.3-1","1.12.4-1","1.12.5-1","1.12.6-1","1.12.7-1","1.12.7-1ubuntu0.1","1.12.7-1ubuntu0.1+esm1"]},{"source":"osv","ecosystem":"openSUSE:Leap 15.3","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.7-4.12.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"flatpak-builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2-1.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"flatpak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.4-1.1"}]}]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"flatpak","product":"flatpak"},{"vendor":"flatpak","product":"flatpak-builder"},{"vendor":"redhat","product":"enterprise_linux"}],"references":[{"url":"https://github.com/flatpak/flatpak/security/advisories/GHSA-8ch7-5j3h-g4fx","tags":["x_transferred","Patch","Third Party Advisory","advisory","article","report"]},{"url":"https://github.com/flatpak/flatpak/commit/445bddeee657fdc8d2a0a1f0de12975400d4fc1a","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/flatpak/flatpak/commit/4d11f77aa7fd3e64cfa80af89d92567ab9e8e6fa","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APFTBYGJJVJPFVHRXUW5PII5XOAFI4KH/","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5049","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IXKBERLJRYV7KXKGXOLI6IOXVBQNN4DP/","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://security.gentoo.org/glsa/202312-12","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-21682","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2022:7458","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-21682","tags":["report"]},{"url":"https://bugzilla.redhat.com/2041592","tags":["report"]},{"url":"https://errata.almalinux.org/8/ALSA-2022-7458.html","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21682.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21682","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-21682","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0131.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29885","tags":["report"]},{"url":"https://github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-572j","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/APFTBYGJJVJPFVHRXUW5PII5XOAFI4KH/","tags":["web"]},{"url":"https://github.com/flatpak/flatpak/releases/tag/1.10.7","tags":["web"]},{"url":"https://github.com/flatpak/flatpak/releases/tag/1.12.4","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/G4SGDDYLN2BFKCHIDCXL2QTDVHPMZZM4/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/IXKBERLJRYV7KXKGXOLI6IOXVBQNN4DP/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/UELF5NVMHRQ45DEBIRQGIVCV4PADFC37/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/F46WFOXXRE63UMMTLQB2FOJT4KLI5AR7/","tags":["web"]},{"url":"https://github.com/flatpak/flatpak/releases/tag/1.12.5","tags":["web"]},{"url":"https://github.com/flatpak/flatpak/releases/tag/1.12.6","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/T4OG73MX3JPZBHYMUXUULPTVL7ZOOTZ5/","tags":["web","advisory"]},{"url":"https://github.com/flatpak/flatpak/releases/tag/1.12.7","tags":["web"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1788","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.7_release_notes/index","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2041592","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2047312","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_7458.json","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21682","tags":["advisory","report"]},{"url":"https://errata.rockylinux.org/RLSA-2022:7458","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20220712-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1194610","tags":["report"]},{"url":"https://bugzilla.suse.com/1194611","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2021-43860","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-21682","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2022-21682","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2022-21682","title":"flatpak-builder can access files outside the build directory.","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`.","status":"published","published":"2022-01-13T00:00:00Z","modified":"2024-08-03T02:46:39.409Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:34:29.057251Z"}],"euvd":[{"id":"EUVD-2022-26892","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`.","status":"published","published":"2022-01-13T00:00:00Z","modified":"2024-08-03T02:46:39Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-03T03:25:54.006451Z"}],"nvd":[{"id":"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`.","status":"published","published":"2022-01-13T21:15:08.69Z","modified":"2026-06-17T04:26:45.213Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:07:10.836864Z"}],"osv":[{"id":"ALPINE-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`.","status":"published","published":"2022-01-13T21:15:08.69Z","modified":"2026-11-03T07:30:26.388304858Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-03T07:50:38.973973Z"},{"id":"CVE-2022-21682","title":"flatpak-builder can access files outside the build directory.","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`.","status":"published","published":"2022-01-13T00:00:00Z","modified":"2026-10-28T10:25:42.196057593Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:44:23.655778Z"},{"id":"DEBIAN-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`.","status":"published","published":"2022-01-13T21:15:08.69Z","modified":"2026-11-03T08:01:01.701901928Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-03T08:25:01.007408Z"},{"id":"OESA-2022-1788","title":"flatpak-builder security update","description":"Flatpak-builder is a tool for building flatpaks from sources.\r\n\r\nSecurity Fix(es):\r\n\r\nFlatpak 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`.(CVE-2022-21682)","status":"published","published":"2022-07-30T11:05:03Z","modified":"2026-08-18T01:16:52.149432924Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:39.528805Z"},{"id":"RHSA-2022:7458","title":"Red Hat Security Advisory: flatpak-builder security and bug fix update","status":"published","published":"2024-09-16T07:35:55Z","modified":"2025-11-22T12:40:12Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:53:10.139266Z"},{"id":"RLSA-2022:7458","title":"Moderate: flatpak-builder security and bug fix update","description":"Flatpak-builder is a tool for building flatpaks from sources.\n\nSecurity Fix(es):\n\n* flatpak: flatpak-builder --mirror-screenshots-url can access files outside the build directory (CVE-2022-21682)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.\n\nAdditional Changes:\n\nFor detailed information on changes in this release, see the Rocky Linux 8.7 Release Notes linked from the References section.","status":"published","published":"2022-11-08T06:20:08Z","modified":"2026-02-04T15:45:08.674435Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:53:24.322216Z"},{"id":"UBUNTU-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`.","status":"published","published":"2022-01-13T21:15:00Z","modified":"2026-09-10T16:30:19.765779378Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","level":"high"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T16:53:52.391598Z"},{"id":"ALSA-2022:7458","title":"Moderate: flatpak-builder security and bug fix update","description":"Flatpak-builder is a tool for building flatpaks from sources.\n\nSecurity Fix(es):\n\n* flatpak: flatpak-builder --mirror-screenshots-url can access files outside the build directory (CVE-2022-21682)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.\n\nAdditional Changes:\n\nFor detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.","status":"published","published":"2022-11-08T00:00:00Z","modified":"2026-10-29T11:01:50.410862982Z","updated_at":"2026-11-02T15:27:51.655726Z"},{"id":"DSA-5049-1","title":"flatpak - security update","status":"published","published":"2022-01-20T00:00:00Z","modified":"2026-03-09T02:10:51.653006Z","updated_at":"2026-11-02T15:46:17.543497Z"},{"id":"MGASA-2022-0131","title":"Updated flatpak packages fix security vulnerability","description":"Flatpak doesn't properly validate that the permissions displayed to the\nuser for an app at install time match the actual permissions granted to\nthe app at runtime, in the case that there's a null byte in the metadata\nfile of an app. (CVE-2021-43860)\nPath traversal vulnerability (CVE-2022-21682)\nVarious other fixes and enhancements included in update to version 1.12.7.\n","status":"published","published":"2022-04-09T21:20:39Z","modified":"2026-04-16T04:41:57.983432631Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"openSUSE-SU-2022:0712-1","title":"Security update for flatpak","description":"This update for flatpak fixes the following issues:\n\nUpdate to flatpak 1.10.7:\n\n- CVE-2022-21682: Introduce new option --nofilesystem=host:reset to support flatpak-builder 1.2.2 (bsc#1194611).\n- CVE-2021-43860: A malicious repository could hav sent invalid application metadata in a way that hides some of the app permissions displayed during installation (bsc#1194610).\n","status":"published","published":"2022-03-04T08:31:01Z","modified":"2026-02-04T03:00:59.861062Z","updated_at":"2026-11-02T16:58:32.653274Z"},{"id":"openSUSE-SU-2024:11755-1","title":"flatpak-builder-1.2.2-1.1 on GA media","description":"These are all security issues fixed in the flatpak-builder-1.2.2-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:28:18.603529Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"openSUSE-SU-2024:11756-1","title":"flatpak-1.12.4-1.1 on GA media","description":"These are all security issues fixed in the flatpak-1.12.4-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:41:20.792219Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2022:0712-1","title":"Security update for flatpak","description":"This update for flatpak fixes the following issues:\n\nUpdate to flatpak 1.10.7:\n\n- CVE-2022-21682: Introduce new option --nofilesystem=host:reset to support flatpak-builder 1.2.2 (bsc#1194611).\n- CVE-2021-43860: A malicious repository could hav sent invalid application metadata in a way that hides some of the app permissions displayed during installation (bsc#1194610).\n","status":"published","published":"2022-03-04T08:31:25Z","modified":"2026-02-04T02:53:00.797309Z","updated_at":"2026-11-02T15:53:50.066806Z"}]}}
