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 productsnot 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
-
openwall.com
/lists/oss-security/2022/06/08/10
mailing-list, patch, third-party-advisory
-
debian.org
/security/2022/dsa-5167
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/SIBEBE3KFINMGJATBQQS7D2VQQ62ZVMF/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/KUZZ5M6LIBYRKTKGROXC47TDC3FRTGJF/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/6RZOTZ36RUSL6DOVHITY25ZYKWTG5HN3/
vendor-advisory
-
security.gentoo.org
/glsa/202305-19
vendor-advisory
-
firejail.wordpress.com
/download-2/release-notes/
release-notes, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/06/msg00023.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2022-31214
- NVD CVE-2022-31214
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.