#VU59689 Path traversal in Flatpak


Published: 2022-01-18 | Updated: 2022-02-03

Vulnerability identifier: #VU59689

Vulnerability risk: Medium

CVSSv3.1: 5.7 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-21682

CWE-ID: CWE-22

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Flatpak
Server applications / Frameworks for developing and running applications

Vendor: Flatpak

Description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when flatpak-builder applies "finish-args" last in the build. A remote authenticated attacker can send a specially crafted HTTP request and create arbitrary files on the system.

Mitigation
Install update from vendor's website.

Vulnerable software versions

Flatpak: 1.10.0 - 1.10.5, 1.12.0 - 1.12.2, 1.8.0 - 1.8.6


External links
http://github.com/flatpak/flatpak/security/advisories/GHSA-8ch7-5j3h-g4fx
http://github.com/flatpak/flatpak/commit/4d11f77aa7fd3e64cfa80af89d92567ab9e8e6fa
http://github.com/flatpak/flatpak/commit/445bddeee657fdc8d2a0a1f0de12975400d4fc1a
http://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/APFTBYGJJVJPFVHRXUW5PII5XOAFI4KH/
http://github.com/flatpak/flatpak/releases/tag/1.8.7


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability