CVE-2023-0386

HIGH KEV

Local Privilege Escalation via CVE-2023-0386

Title source: metasploit
STIX 2.1

Exploitation Summary

CVE-2023-0386 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added June 17, 2025. EIP tracks 18 public exploits from researchers including xkaneiki, chenaotian, sxlmnwb, including a Metasploit module exploits/linux/local/cve_2023_0386_overlayfs_priv_esc.

AI-analyzed exploit summary This PoC exploits CVE-2023-0386, a Linux kernel vulnerability in the OverlayFS subsystem, to achieve local privilege escalation (LPE). It uses FUSE to manipulate file attributes and overlayfs mounts to gain root privileges.

Description

A flaw was found in the Linux kernel, where unauthorized access to the execution of the setuid file with capabilities was found in the Linux kernel’s OverlayFS subsystem in how a user copies a capable file from a nosuid mount into another mount. This uid mapping bug allows a local user to escalate their privileges on the system.

Exploits (18)

nomisec WORKING POC 412 stars
by xkaneiki · local
https://github.com/xkaneiki/CVE-2023-0386

This PoC exploits CVE-2023-0386, a Linux kernel vulnerability in the OverlayFS subsystem, to achieve local privilege escalation (LPE). It uses FUSE to manipulate file attributes and overlayfs mounts to gain root privileges.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel (OverlayFS)
No auth needed
Prerequisites: Local access to a vulnerable Linux system · Ability to compile and execute C code · OverlayFS and FUSE support in the kernel
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 123 stars
by chenaotian · local
https://github.com/chenaotian/CVE-2023-0386

This repository contains a proof-of-concept exploit for CVE-2023-0386, a local privilege escalation vulnerability in the Linux kernel's overlay filesystem. The exploit leverages a FUSE filesystem to create a malicious file with elevated privileges, which is then copied to an overlay filesystem to gain root access.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux kernel versions 5.11 to 5.19
No auth needed
Prerequisites: Access to a vulnerable Linux kernel (5.11 to 5.19) · Ability to compile and run C code · Ability to create overlay filesystems
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 49 stars
by sxlmnwb · local
https://github.com/sxlmnwb/CVE-2023-0386

This PoC exploits CVE-2023-0386, a Linux OverlayFS vulnerability, to achieve local privilege escalation (LPE) by manipulating file capabilities and user namespaces. The exploit uses FUSE to create a malicious filesystem and overlay mounts to trigger the vulnerability.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel (OverlayFS)
No auth needed
Prerequisites: User namespace access · OverlayFS support · FUSE support
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 19 stars
by Fanxiaoyao66 · local
https://github.com/Fanxiaoyao66/CVE-2023-0386

This repository contains a working proof-of-concept exploit for CVE-2023-0386, which leverages a vulnerability in OverlayFS to achieve local privilege escalation (LPE) by copying a FUSE-generated SUID binary from a lower layer to an upper layer, bypassing security restrictions.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel (OverlayFS, versions affected by CVE-2023-0386)
Auth required
Prerequisites: Local access to a vulnerable system · Ability to compile and execute FUSE filesystems · Ability to mount OverlayFS
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 12 stars
by puckiestyle · local
https://github.com/puckiestyle/CVE-2023-0386

This repository contains a functional proof-of-concept exploit for CVE-2023-0386, targeting a privilege escalation vulnerability in the Linux kernel's OverlayFS subsystem. The exploit leverages FUSE and user namespace manipulation to escalate privileges by copying a capable file from a nosuid mount.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux kernel (OverlayFS subsystem)
No auth needed
Prerequisites: Local user access · Linux kernel with OverlayFS support · FUSE support
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 10 stars
by veritas501 · local
https://github.com/veritas501/CVE-2023-0386

This PoC exploits CVE-2023-0386, a vulnerability in the Linux kernel's overlayfs module, to achieve local privilege escalation by manipulating file attributes and using FUSE to create a malicious filesystem. The exploit drops a SUID binary to gain root access.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Complex
Reliability
Reliable
Target: Linux kernel (overlayfs module)
No auth needed
Prerequisites: Local access to a vulnerable Linux system · Overlayfs module loaded · FUSE support
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 4 stars
by P4x1s · poc
https://github.com/P4x1s/CVE-2023-0386

This PoC exploits CVE-2023-0386, a vulnerability in the Linux kernel's overlayfs, by creating a FUSE filesystem with a setuid binary and leveraging overlayfs to gain root privileges. The exploit uses shellcode to spawn a root shell.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux kernel (overlayfs)
No auth needed
Prerequisites: Write access to a directory not mounted with nosuid · Ability to execute unshare and mount commands
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WRITEUP 4 stars
by Satheesh575555 · poc
https://github.com/Satheesh575555/linux-4.19.72_CVE-2023-0386

The repository contains documentation files from a Linux kernel version 4.19.72, including ABI stability guidelines, configuration scripts, and hardware-specific documentation. No exploit code or proof-of-concept for CVE-2023-0386 is present in the provided files.

Classification
Writeup 90%
Attack Type
N/a
Complexity
N/a
Reliability
N/a
Target: Linux Kernel 4.19.72
No auth needed
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by orilevy8 · local
https://github.com/orilevy8/cve-2023-0386

This PoC exploits CVE-2023-0386, a Linux kernel vulnerability in the overlayfs module, to achieve local privilege escalation. It uses FUSE to create a fake filesystem and overlayfs to trigger the vulnerability, resulting in a SUID binary that spawns a root shell.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel (versions affected by CVE-2023-0386)
No auth needed
Prerequisites: Local access to a vulnerable Linux system · Ability to compile C code (gcc) · FUSE installed
devstral-2 · analyzed Feb 16, 2026 Full analysis →
gitlab WORKING POC
by FarrimWildaxe · poc
https://gitlab.com/FarrimWildaxe/CVE-2023-0386

This repository contains a functional exploit for CVE-2023-0386, a Linux kernel vulnerability in the OverlayFS subsystem. The exploit uses FUSE to manipulate file capabilities and achieve local privilege escalation (LPE) by creating a setuid binary.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel (OverlayFS)
No auth needed
Prerequisites: Linux system with OverlayFS support · unprivileged user namespace access
devstral-2 · analyzed May 25, 2026 Full analysis →
nomisec WORKING POC
by julianertle · poc
https://github.com/julianertle/CVE-2023-0386-CTF

This repository contains a fully functional CTF environment exploiting CVE-2023-0386, a Linux kernel vulnerability in OverlayFS. It includes a Vagrantfile and Ansible playbook to provision a vulnerable Ubuntu system with a specific kernel version (5.15.0-25-generic) and misconfigured Apache 2.4.49, enabling path traversal and RCE via CGI scripts.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel 5.15.0-25-generic (OverlayFS), Apache 2.4.49
No auth needed
Prerequisites: Vagrant · VirtualBox · Ansible · Ubuntu 22.04 base image
devstral-2 · analyzed May 20, 2026 Full analysis →
nomisec WRITEUP
by karimelsheikh1 · poc
https://github.com/karimelsheikh1/HTB-TwoMillion-Writeup

This is a detailed technical writeup for the HackTheBox TwoMillion machine, covering API abuse, command injection, and privilege escalation via CVE-2023-0386 (OverlayFS). It includes step-by-step exploitation details, code snippets, and technical analysis.

Classification
Writeup 100%
Attack Type
Rce | Lpe | Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel 5.15.70 (OverlayFS)
Auth required
Prerequisites: Access to the target machine · Valid session cookie · CVE-2023-0386 exploit binary
devstral-2 · analyzed Apr 23, 2026 Full analysis →
nomisec WORKING POC
by huovnn · local
https://github.com/huovnn/CVE-2023-0386-go-poc

This Go-based PoC exploits CVE-2023-0386, a Linux kernel vulnerability in the overlayfs filesystem, to achieve local privilege escalation (LPE). It uses FUSE and overlayfs to create a malicious binary with SUID bit set, allowing execution as root.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel (specific versions affected by CVE-2023-0386)
No auth needed
Prerequisites: Local access to the vulnerable system · Ability to mount FUSE filesystems · Compiled binary named 'shell' in the working directory
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by dragosbanica · local
https://github.com/dragosbanica/CVE-2023-0386_POC

This repository contains a functional proof-of-concept exploit for CVE-2023-0386, a local privilege escalation vulnerability in Linux OverlayFS. The exploit leverages incorrect handling of file capabilities during copy-up operations to escalate privileges to root.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel OverlayFS (versions including 5.15.0-25-generic)
No auth needed
Prerequisites: Local access to a vulnerable Linux system · FUSE support enabled · Development tools (gcc, make, libfuse-dev, libcap-dev)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by EstamelGG · local
https://github.com/EstamelGG/CVE-2023-0386-libs

This PoC exploits CVE-2023-0386, a Linux kernel vulnerability in the overlayfs module, by creating a malicious FUSE filesystem with a setuid binary to achieve local privilege escalation. The exploit leverages overlayfs to manipulate file permissions and execute arbitrary code with elevated privileges.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel (overlayfs module) < 6.2.9
No auth needed
Prerequisites: Local access to the target system · Ability to mount FUSE filesystems · Kernel version vulnerable to CVE-2023-0386
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by churamanib · local
https://github.com/churamanib/CVE-2023-0386

This PoC exploits CVE-2023-0386, a Linux OverlayFS vulnerability, to achieve local privilege escalation (LPE) by manipulating file capabilities and user namespaces. The exploit uses FUSE to create a malicious filesystem and overlay mounts to trigger the vulnerability.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux Kernel (OverlayFS)
No auth needed
Prerequisites: User namespace access · OverlayFS support · FUSE support
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec STUB
by letsr00t · poc
https://github.com/letsr00t/CVE-2023-0386

The repository contains only a README.md file with a CVE identifier and no exploit code or technical details. It appears to be a placeholder or stub.

Classification
Stub 10%
Attack Type
Other
Complexity
Trivial
Reliability
Theoretical
Target: unknown
No auth needed
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by xkaneiki, sxlmnwb, Takahiro Yokoyama · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/cve_2023_0386_overlayfs_priv_esc.rb

This Metasploit module exploits CVE-2023-0386, a Linux kernel vulnerability in OverlayFS that allows local privilege escalation by manipulating uid mappings when copying capable files from a nosuid mount. It compiles or uploads an exploit binary and a payload executable to achieve root privileges.

Classification
Working Poc 100%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Linux kernel versions between 5.11 and 5.15.90, and 5.16 to 6.1.8
No auth needed
Prerequisites: Unprivileged user namespace enabled · Writable directory (default /tmp) · Vulnerable Linux kernel version
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 7.8
EPSS 0.0788
EPSS Percentile 94.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation active
Automatable no
Technical Impact total

Details

CISA KEV 2025-06-17
VulnCheck KEV 2025-06-17
ENISA EUVD EUVD-2023-12447
CWE
CWE-282
Status published
Products (11)
canonical/ubuntu_linux 18.04
canonical/ubuntu_linux 20.04
canonical/ubuntu_linux 22.04
debian/debian_linux 10.0
linux/linux_kernel 6.2 rc1 (5 CPE variants)
linux/linux_kernel 5.11 - 5.15.91
netapp/h300s_firmware
netapp/h410c_firmware
netapp/h410s_firmware
netapp/h500s_firmware
... and 1 more
Published Mar 22, 2023
KEV Added Jun 17, 2025
Tracked Since Feb 18, 2026