openEuler 20.03 LTS SP1 update for flatpak



Published: 2021-05-06
Risk Medium
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2019-8308
CVE-2021-21381
CWE-ID CWE-264
CWE-74
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
openEuler
Operating systems & Components / Operating system

flatpak-help
Operating systems & Components / Operating system package or component

flatpak-devel
Operating systems & Components / Operating system package or component

flatpak-debugsource
Operating systems & Components / Operating system package or component

flatpak-debuginfo
Operating systems & Components / Operating system package or component

flatpak
Operating systems & Components / Operating system package or component

Vendor openEuler

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Privilege escalation

EUVDB-ID: #VU17726

Risk: Low

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

CVE-ID: CVE-2019-8308

CWE-ID: CWE-264 - Permissions, Privileges, and Access Controls

Exploit availability: No

Description

The vulnerability allows an adjacent attacker to escalate privileges on the system.

The vulnerability exists due an error when handling file descriptors related to /proc/self/exe. An adjacent attacker can trick the victim with root privileges into installing a system-wide Flatpak application that has an apply_extra script, and then run the apply_extra script in a sandbox with /proc mounted to escape sandbox protections and maliciously modify executable files as root on the host system.

Mitigation

Install updates from vendor's repository.

Vulnerable software versions

openEuler: 20.03 LTS SP1

flatpak-help: before 1.0.3-5

flatpak-devel: before 1.0.3-5

flatpak-debugsource: before 1.0.3-5

flatpak-debuginfo: before 1.0.3-5

flatpak: before 1.0.3-5

External links

http://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1149


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the local network (LAN).

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.

2) Improper Neutralization of Special Elements in Output Used by a Downstream Component

EUVDB-ID: #VU51443

Risk: Medium

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

CVE-ID: CVE-2021-21381

CWE-ID: CWE-74 - Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to bypass implemented security restrictions.

The vulnerability exists due to improper input validation within the "file forwarding" feature. By putting the special tokens `@@` and/or `@@u` in the Exec field of a Flatpak app's .desktop file, a malicious app publisher can trick flatpak into behaving as though the user had chosen to open a target file with their Flatpak app, which automatically makes that file available to the Flatpak app.

Mitigation

Install updates from vendor's repository.

Vulnerable software versions

openEuler: 20.03 LTS SP1

flatpak-help: before 1.0.3-5

flatpak-devel: before 1.0.3-5

flatpak-debugsource: before 1.0.3-5

flatpak-debuginfo: before 1.0.3-5

flatpak: before 1.0.3-5

External links

http://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1149


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

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



###SIDEBAR###