CVE-2022-21682: flatpak-builder can access files outside the build directory.
Vendor fix available · Affected: flatpak · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 79% of scored CVEs
DescriptionCVE.org
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`.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- flatpak · flatpak>= 1.11.0, < 1.12.3; < 1.10.6
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- flatpak
- Published
- January 2022
CoverageNo articles yet
No CyberSIXT article names CVE-2022-21682 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-22cwe.mitre.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorydebian.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorysecurity.gentoo.org
- github.com/flatpak/flatpak/security/advisories/GHSA-8ch7-5j3h-g4github.com
- github.com/flatpak/flatpak/commit/445bddeee657fdc8d2a0a1f0de1297github.com
- github.com/flatpak/flatpak/commit/4d11f77aa7fd3e64cfa80af89d9256github.com