CVE-2022-21682: debian debian_linux Path Traversal
Vulnerability summary
CVE-2022-21682 is a high (CVSS 7.7) Path Traversal vulnerability in debian debian_linux. EPSS estimates a 1.68% chance of exploitation in the next 30 days, higher than 76.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 2Timeline
- 13-01-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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`.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · Red hatEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
1.68%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
0.00 pp
From 1.68% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat4 products
- enterprise_linux8.0
- flatpak-builder< 0:1.0.14-2.el8
- flatpak-builder-debuginfo< 0:1.0.14-2.el8
- flatpak-builder-debugsource< 0:1.0.14-2.el8
Debian2 products
- flatpak< 1.12.3-1
- debian_linuxEOL9.0 | 10.0 | 11.0
Flatpak2 products
- flatpak≥ 1.11.0, < 1.12.3 | < 1.10.6 | < 1.10.7 | ≥ 1.11.1, < 1.12.4
- flatpak-builder< 1.2.2
Opensuse2 products
- flatpak-builder&distro=openSUSE Tumbleweed< 1.2.2-1.1
- flatpak&distro=openSUSE Tumbleweed< 1.12.4-1.1
Fedoraproject1 product
- fedoraEOL35
Ubuntu1 product
- flatpakAll versions (No fix recorded)
6 vendors · 12 products
References
19 links- github.com/flatpak/flatpak/security/advisories/GHSA-8ch7-5j3h-g4fxARTICLEREPORTPatchThird Party Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- security.gentoo.org/glsa/202312-12Vendor Advisory