Privilege escalation in Flatpak



Published: 2021-01-18
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-21261
CWE-ID CWE-94
Exploitation vector Local
Public exploit N/A
Vulnerable software
Subscribe
Flatpak
Server applications / Frameworks for developing and running applications

Vendor Flatpak

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Code Injection

EUVDB-ID: #VU49587

Risk: Low

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

CVE-ID: CVE-2021-21261

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: No

Description

The vulnerability allows a local application to elevate privileges on the system.

The vulnerability exists due to improper input validation when processing environment variables, passed from a sandboxed process to a non-sandboxed process on the host system, and in particular to the `flatpak run` command that is used to launch the new sandbox instance. A malicious or compromised Flatpak app can set environment variables that are trusted by the `flatpak run` command, and use them to execute arbitrary code that is not in a sandbox.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Flatpak: 0.11.4 - 1.9.3

External links

http://github.com/flatpak/flatpak/commit/57416f380600d9754df12baf5b227144ff1bb54d
http://github.com/flatpak/flatpak/commit/6a11007021658518c088ba0cc5e4da27962a940a
http://github.com/flatpak/flatpak/commit/dcd24941c7087c5f7e8033abe50b178ac02a34af
http://github.com/flatpak/flatpak/commit/fb1eaefbceeb73f02eb1bc85865d74a414faf8b8
http://github.com/flatpak/flatpak/releases/tag/1.8.5
http://github.com/flatpak/flatpak/security/advisories/GHSA-4ppf-fxf6-vxg2
http://www.debian.org/security/2021/dsa-4830


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

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



###SIDEBAR###