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 | — | Upgrade flatpak-builder | Nov 14, 2022 | Jan 13, 2022 |
| Alpine Linux | — | Upgrade flatpakUpgrade flatpak-builder | Aug 22, 2024 | Jan 13, 2022 |
| Centos_linux | — | Upgrade flatpak-builder-debuginfoUpgrade flatpak-builderUpgrade flatpak-builder-debugsource | Nov 9, 2022 | Jan 13, 2022 |
| Debian | — | Upgrade flatpak | Nov 4, 2022 | Jan 13, 2022 |
| Gentoo Linux | — | Upgrade sys-apps/flatpak. | Dec 27, 2023 | Jan 13, 2022 |
| Huawei Euleros 2_0_sp8 | — | Upgrade flatpak-libsUpgrade flatpak | Mar 29, 2022 | Jan 13, 2022 |
| Oracle_linux | — | Upgrade flatpak-builder | Nov 16, 2022 | Jan 12, 2022 |
| Redhat_linux | — | Upgrade flatpak-builderUpgrade flatpak-builder-debuginfoUpgrade flatpak-builder-debugsource | Nov 9, 2022 | Jan 13, 2022 |
| Rocky_linux | — | Upgrade flatpak-builder-debuginfoUpgrade flatpak-builderUpgrade flatpak-builder-debugsource | Mar 12, 2024 | Jan 13, 2022 |
| Suse | — | Upgrade flatpak-develUpgrade libflatpak0Upgrade flatpak-remote-flathubUpgrade typelib-1_0-flatpak-1_0Upgrade flatpak-zsh-completionUpgrade system-user-flatpakUpgrade flatpak-builderUpgrade flatpak | 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