Skip to main content

Firejail CVE-2022-31214

HIGH
Improper Privilege Management (CWE-269)
2022-06-09 cve@mitre.org
7.8
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

1
CVE Published
Jun 09, 2022 - 16:15 nvd
HIGH 7.8

DescriptionNVD

A Privilege Context Switching issue was discovered in join.c in Firejail 0.9.68. By crafting a bogus Firejail container that is accepted by the Firejail setuid-root program as a join target, a local attacker can enter an environment in which the Linux user namespace is still the initial user namespace, the NO_NEW_PRIVS prctl is not activated, and the entered mount namespace is under the attacker's control. In this way, the filesystem layout can be adjusted to gain root privileges through execution of available setuid-root binaries such as su or sudo.

AnalysisAI

A Privilege Context Switching issue was discovered in join.c in Firejail 0.9.68. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. This Improper Privilege Management vulnerability could allow attackers to escalate privileges to gain unauthorized elevated access.

Technical ContextAI

This vulnerability is classified as Improper Privilege Management (CWE-269), which allows attackers to escalate privileges to gain unauthorized elevated access. A Privilege Context Switching issue was discovered in join.c in Firejail 0.9.68. By crafting a bogus Firejail container that is accepted by the Firejail setuid-root program as a join target, a local attacker can enter an environment in which the Linux user namespace is still the initial user namespace, the NO_NEW_PRIVS prctl is not activated, and the entered mount namespace is under the attacker's control. In this way, the filesystem layout can be adjusted to gain root privileges through execution of available setuid-root binaries such as su or sudo. Affected products include: Firejail Project Firejail, Fedoraproject Fedora, Debian Debian Linux.

RemediationAI

A vendor patch is available. Apply the latest security update as soon as possible. Apply principle of least privilege, validate privilege transitions, implement proper role separation.

CVE-2017-5180 HIGH POC
8.8 Feb 09

Firejail before 0.9.44.4 and 0.9.38.x LTS before 0.9.38.8 LTS does not consider the .Xauthority case during its attempt

CVE-2019-12589 HIGH POC
8.8 Jun 03

In Firejail before 0.9.60, seccomp filters are writable inside the jail, leading to a lack of intended seccomp restricti

CVE-2021-26910 HIGH POC
7.0 Feb 08

Firejail before 0.9.64.4 allows attackers to bypass intended access restrictions because there is a TOCTOU race conditio

CVE-2020-17368 CRITICAL
9.8 Aug 11

Firejail through 0.9.62 mishandles shell metacharacters during use of the --output or --output-stderr option, which may

CVE-2017-5206 CRITICAL
9.0 Mar 23

Firejail before 0.9.44.4, when running on a Linux kernel before 4.8, allows context-dependent attackers to bypass a secc

CVE-2016-9016 HIGH
8.8 Jan 19

Firejail 0.9.38.4 allows local users to execute arbitrary commands outside of the sandbox via a crafted TIOCSTI ioctl ca

CVE-2017-5940 HIGH
8.8 Feb 09

Firejail before 0.9.44.6 and 0.9.38.x LTS before 0.9.38.10 LTS does not comprehensively address dotfile cases during its

CVE-2019-12499 HIGH
8.1 May 31

Firejail before 0.9.60 allows truncation (resizing to length 0) of the firejail binary on the host by running exploit co

CVE-2016-10123 HIGH
7.8 Apr 13

Firejail allows --chroot when seccomp is not supported, which might allow local users to gain privileges. Rated high sev

CVE-2016-10122 HIGH
7.8 Apr 13

Firejail does not properly clean environment variables, which allows local users to gain privileges. Rated high severity

CVE-2016-10117 HIGH
7.8 Apr 13

Firejail does not restrict access to --tmpfs, which allows local users to gain privileges, as demonstrated by mounting o

CVE-2017-5207 HIGH
7.8 Mar 23

Firejail before 0.9.44.4, when running a bandwidth command, allows local users to gain root privileges via the --shell a

Share

CVE-2022-31214 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy