CVE-2022-21682
Summary
| CVE | CVE-2022-21682 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-01-13 21:15:00 UTC |
| Updated | 2023-12-23 10:15:00 UTC |
| 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`. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| manpages: Document the new details of --nofilesystem behaviour. · flatpak/flatpak@4d11f77 · GitHub |
MISC |
github.com |
|
| CVE-2022-21682: flatpak-builder --mirror-screenshots-url can access files outside the build directory · Advisory · flatpak/flatpak · GitHub |
CONFIRM |
github.com |
|
| [SECURITY] Fedora 35 Update: flatpak-builder-1.2.2-1.fc35 - package-announce - Fedora Mailing-Lists |
|
lists.fedoraproject.org |
|
| Debian -- Security Information -- DSA-5049-1 flatpak |
DEBIAN |
www.debian.org |
|
| [SECURITY] Fedora 35 Update: flatpak-1.12.3-1.fc35 - package-announce - Fedora Mailing-Lists |
|
lists.fedoraproject.org |
|
| [SECURITY] Fedora 35 Update: flatpak-builder-1.2.2-1.fc35 - package-announce - Fedora Mailing-Lists |
FEDORA |
lists.fedoraproject.org |
|
| Make --nofilesystem=host/home remove access to subdirs of those · flatpak/flatpak@445bdde · GitHub |
MISC |
github.com |
|
| Flatpak: Multiple Vulnerabilities (GLSA 202312-12) — Gentoo security |
|
security.gentoo.org |
|
| [SECURITY] Fedora 35 Update: flatpak-1.12.3-1.fc35 - package-announce - Fedora Mailing-Lists |
FEDORA |
lists.fedoraproject.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 160236 Oracle Enterprise Linux Security Update for flatpak-builder (ELSA-2022-7458)
- 179013 Debian Security Update for flatpak (DSA 5049-1)
- 240858 Red Hat Update for flatpak-builder (RHSA-2022:7458)
- 282251 Fedora Security Update for flatpak (FEDORA-2022-825ca6bf2b)
- 282287 Fedora Security Update for flatpak (FEDORA-2022-7e328bd66c)
- 282319 Fedora Security Update for flatpak (FEDORA-2022-8c64cb0992)
- 354313 Amazon Linux Security Advisory for flatpak : ALAS2022-2022-179
- 354489 Amazon Linux Security Advisory for flatpak : ALAS2022-2022-021
- 377898 Alibaba Cloud Linux Security Update for flatpak-builder (ALINUX3-SA-2023:0004)
- 502085 Alpine Linux Security Update for flatpak
- 502286 Alpine Linux Security Update for flatpak-builder
- 671417 EulerOS Security Update for flatpak (EulerOS-SA-2022-1343)
- 710812 Gentoo Linux Flatpak Multiple Vulnerabilities (GLSA 202312-12)
- 751803 SUSE Enterprise Linux Security Update for flatpak (SUSE-SU-2022:0712-1)
- 751816 OpenSUSE Security Update for flatpak (openSUSE-SU-2022:0712-1)
- 940771 AlmaLinux Security Update for flatpak-builder (ALSA-2022:7458)
- 960384 Rocky Linux Security Update for flatpak-builder (RLSA-2022:7458)