Skip to content
Fencer Vulns
high 7.8

CVE-2022-31214 json

A Privilege Context Switching issue was discovered in join.c in Firejail 0.9.68.

published 2022-06-09 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-52798

cvss
7.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 35%
public exploits
0
none known

Summary

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.

Patch / fix

  • firejail Debian 14, Debian 13, Debian 12 0.9.68-4

debian advisories DEBIAN-CVE-2022-31214

  • firejail Package Hub 15 SP4, openSUSE Leap 15.4 0.9.70-bp154.2.3.1
  • firejail Package Hub 15 SP3, openSUSE Leap 15.3 0.9.70-bp153.2.6.1

opensuse advisories openSUSE-SU-2022:10016-1openSUSE-SU-2022:10015-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-31214 updated cvss 7.8

firejail: CVE-2022-31214: local root exploit reachable via --join logic

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.40% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.2 AV:L/AC:L/Au:N/C:C/I:C/A:C

Classification

Weakness
  • CWE-269 Improper Privilege Management

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.