patchminder
Weaponized · Metasploit CVE-2018-18955

Privilege escalationin CVE-2018-18955.

Published 16 Nov 2018 · Updated 5 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Not scored
No source has scored it yet
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 7.7% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
See the vendor advisory
In plain words

In the Linux kernel 4.15.x through 4.19.x before 4.19.2, map_write() in kernel/user_namespace.c allows privilege escalation because it mishandles nested user namespaces with more than 5 UID or GID ranges. A user who has CAP_SYS_ADMIN in an affected user namespace can bypass access controls on resources outside the namespace, as demonstrated by reading /etc/shadow. This occurs because an ID transformation takes place properly for the namespaced-to-kernel direction but not for the kernel-to-namespaced direction.

What to do now
  • No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.

Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed; severity not scored yet. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 5 Nov 2018
    CVE ID reserved by mitre.
  2. 15 Nov 2018
    Metasploit module: Linux Nested User Namespace idmap Limit Local Privilege Escalation.
  3. 16 Nov 2018
    Published in the CVE List.
  4. 19 Jan 2022
    First public proof of concept on GitHub.
  5. 5 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit).

Metasploit module
1 module
Nuclei scan template
None known
Exploit-DB
7 entries
GitHub proof of concepts
3 repositories
MetasploitLinux Nested User Namespace idmap Limit Local Privilege Escalationrank greatLinked once a fix or workaround is known.
Exploit-DBEDB-ID 45886local exploit for linux, published 16 Nov 2018, verified by Exploit-DBLinked once a fix or workaround is known.
Exploit-DBEDB-ID 45915local exploit for linux, published 29 Nov 2018, verified by Exploit-DBLinked once a fix or workaround is known.
Exploit-DBEDB-ID 45915local exploit for linux, published 29 Nov 2018, verified by Exploit-DBLinked once a fix or workaround is known.
Exploit-DBEDB-ID 47164local exploit for linux, published 21 Nov 2018Linked once a fix or workaround is known.
Exploit-DBEDB-ID 47165local exploit for linux, published 4 Jan 2019Linked once a fix or workaround is known.
Exploit-DBEDB-ID 47166local exploit for linux, published 21 Nov 2018Linked once a fix or workaround is known.
Exploit-DBEDB-ID 47167local exploit for linux, published 4 Jan 2019Linked once a fix or workaround is known.
Referencewww.exploit-db.comnamed as exploit in the CVE recordLinked once a fix or workaround is known.
Referencewww.exploit-db.comnamed as exploit in the CVE recordLinked once a fix or workaround is known.

3 proof of concept repositories on GitHub. No fix or workaround is known yet, so we count them but do not link to them.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

References
Cite this page

Patchminder. CVE-2018-18955: Privilege escalation in CVE-2018-18955. https://patchminder.com/cve/cve-2018-18955/ (accessed 5 December 2026).