cve.bz

CVE-2022-21682 Path traversal

6.5 mediumEPSS 1.8%Fix available

Medium (6.5). EPSS 1.8% estimated probability of exploitation activity in the next 30 days.

On this page
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`.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
1.8% (unchanged from 1.8% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-21682 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21682?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21682?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-21682 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
flatpak:flatpakbefore 1.10.7
flatpak:flatpakfrom 1.11.1 before 1.12.4
flatpak:flatpak-builderbefore 1.2.2
fedoraproject:fedora35
redhat:enterprise_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11flatpak1.10.7-0+deb11u1DSA-5049-1
Debian12, 13, 14flatpak1.12.3-1DEBIAN-CVE-2022-21682
UbuntuPro:18.04:LTS, Pro:20.04:LTS, Pro:22.04:LTSflatpakno fix listedUBUNTU-CVE-2022-21682
Red Hatenterprise_linux:8::appstreamflatpak-builder, flatpak-builder-debuginfo, flatpak-builder-debugsource0:1.0.14-2.el8RHSA-2022:7458
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 moreflatpak1.10.7-4.12.1SUSE-SU-2022:0712-1
openSUSELeap 15.3flatpak1.10.7-4.12.1openSUSE-SU-2022:0712-1
openSUSETumbleweedflatpak1.12.4-1.1openSUSE-SU-2024:11756-1
openSUSETumbleweedflatpak-builder1.2.2-1.1openSUSE-SU-2024:11755-1
AlmaLinux8flatpak-builder1.0.14-2.el8ALSA-2022:7458
Rocky Linux8flatpak-builder0:1.0.14-2.el8RLSA-2022:7458
Alpinev3.15, v3.16, v3.17 and 7 moreflatpak1.12.5-r0ALPINE-CVE-2022-21682
Alpinev3.16, v3.17, v3.18 and 6 moreflatpak-builder1.2.2-r0ALPINE-CVE-2022-21682

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8flatpak-builder-0:1.0.14-2.el8Fixed 2022-11-08RHSA-2022:7458
Red Hat Enterprise Linux 7flatpakNot affected
Red Hat Enterprise Linux 9flatpakNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-21682.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON