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`.
CVSS Details
- CVSS 3.1 Base Score: 7.7
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | alma-upgrade-flatpak-builder | Nov 14, 2022 | Jan 13, 2022 | |
| Alpine Linux | alpine-linux-upgrade-flatpakalpine-linux-upgrade-flatpak-builder | Aug 22, 2024 | Jan 13, 2022 | |
| Centos_linux | — | centos-upgrade-flatpak-buildercentos-upgrade-flatpak-builder-debuginfocentos-upgrade-flatpak-builder-debugsource | Nov 9, 2022 | Jan 13, 2022 |
| Debian | debian-upgrade-flatpak | Nov 4, 2022 | Jan 13, 2022 | |
| Gentoo Linux | gentoo-linux-upgrade-sys-apps-flatpak | Dec 27, 2023 | Jan 13, 2022 | |
| Huawei Euleros 2_0_sp8 | huawei-euleros-2_0_sp8-upgrade-flatpakhuawei-euleros-2_0_sp8-upgrade-flatpak-libs | Mar 29, 2022 | Jan 13, 2022 | |
| Oracle_linux | — | oracle-linux-upgrade-flatpak-builder | Nov 16, 2022 | Jan 12, 2022 |
| Redhat_linux | redhat-upgrade-flatpak-builderredhat-upgrade-flatpak-builder-debuginforedhat-upgrade-flatpak-builder-debugsource | Nov 9, 2022 | Jan 13, 2022 | |
| Rocky_linux | rocky-upgrade-flatpak-builderrocky-upgrade-flatpak-builder-debuginforocky-upgrade-flatpak-builder-debugsource | Mar 12, 2024 | Jan 13, 2022 | |
| Suse | — | suse-upgrade-flatpaksuse-upgrade-flatpak-buildersuse-upgrade-flatpak-develsuse-upgrade-flatpak-remote-flathubsuse-upgrade-flatpak-zsh-completionsuse-upgrade-libflatpak0suse-upgrade-system-user-flatpaksuse-upgrade-typelib-1_0-flatpak-1_0 | Mar 5, 2022 | Jan 13, 2022 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub