Vulnerability · Published Jun 9, 2022 · Assigned by mitre

CVE-2022-31214

High 7.8

In plain English

A high-severity security flaw in the firejail package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.4%top 65.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12firejail0.9.68-4DEBIAN-CVE-2022-31214
Debian:13firejail0.9.68-4DEBIAN-CVE-2022-31214
Debian:14firejail0.9.68-4DEBIAN-CVE-2022-31214
Ubuntu:22.04:LTSfirejailno fix listedUBUNTU-CVE-2022-31214
Ubuntu:24.04:LTSfirejailno fix listedUBUNTU-CVE-2022-31214
Ubuntu:25.10firejailno fix listedUBUNTU-CVE-2022-31214
Ubuntu:26.04:LTSfirejailno fix listedUBUNTU-CVE-2022-31214
Ubuntu:26.10firejailno fix listedUBUNTU-CVE-2022-31214

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References