CVE Database›Document archive›CVE-2022-21682

CVE-2022-21682

flatpak: flatpak-builder --mirror-screenshots-url can access files outside the build directory

Loading…

Severity

Moderate

Red Hat Product Security

7.7

CVSS 3.1

Review impact separately from score.

Published · January 12, 2022

Updated · November 22, 2025

Description

A path traversal vulnerability was found in Flatpak. This happens when 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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 7.7
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')