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
mongobleed | Kitploit
Tools/GitHubGitHub/joe-desimone/mongobleed
Memory ForensicsVulnerability AnalysisExploitationInformation GatheringPenetration TestingDatabase Security
GitHubjoe-desimone/mongobleed

mongobleed

View Repository
9431687 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

mongobleed

CVE-2025-14847 - MongoDB Unauthenticated Memory Leak Exploit

A proof-of-concept exploit for the MongoDB zlib decompression vulnerability that allows unauthenticated attackers to leak sensitive server memory.

Vulnerability

A flaw in MongoDB's zlib message decompression returns the allocated buffer size instead of the actual decompressed data length. This allows attackers to read uninitialized memory by:

  1. Sending a compressed message with an inflated uncompressedSize claim
  2. MongoDB allocates a large buffer based on the attacker's claim
  3. zlib decompresses actual data into the start of the buffer
  4. The bug causes MongoDB to treat the entire buffer as valid data
  5. BSON parsing reads "field names" from uninitialized memory until null bytes

Affected Versions

VersionAffectedFixed
8.2.x8.2.0 - 8.2.28.2.3
8.0.x8.0.0 - 8.0.168.0.17
7.0.x7.0.0 - 7.0.277.0.28
6.0.x6.0.0 - 6.0.266.0.27
5.0.x5.0.0 - 5.0.315.0.32

Usage

root@kitploit:~
# 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

Options

Example Output

root@kitploit:~
[*] mongobleed - CVE-2025-14847 MongoDB Memory Leak
[*] Author: Joe Desimone - x.com/dez_
[*] Target: localhost:27017
[*] Scanning offsets 20-50000

[+] offset=  117 len=  39: ssions^\u0001�r��*YDr���
[+] offset=16582 len=1552: MemAvailable:    8554792 kB\nBuffers: ...
[+] offset=18731 len=3908: Recv SyncookiesFailed EmbryonicRsts ...

[*] Total leaked: 8748 bytes
[*] Unique fragments: 42
[*] Saved to: leaked.bin

Test Environment

A Docker Compose file is included to spin up a vulnerable MongoDB instance:

root@kitploit:~
docker-compose up -d
python3 mongobleed.py

How It Works

The exploit crafts BSON documents with inflated length fields. When the server parses these documents, it reads field names from uninitialized memory until it hits a null byte. Each probe at a different offset can leak different memory regions.

Leaked data may include:

  • MongoDB internal logs and state
  • WiredTiger storage engine configuration
  • System /proc data (meminfo, network stats)
  • Docker container paths
  • Connection UUIDs and client IPs

References

  • OX Security Advisory
  • MongoDB Fix Commit

Author

Joe Desimone - x.com/dez_

Disclaimer

This tool is for authorized security testing only. Unauthorized access to computer systems is illegal.

Download Tool
OptionDefaultDescription
--hostlocalhostTarget MongoDB host
--port27017Target MongoDB port
--min-offset20Minimum document length to probe
--max-offset8192Maximum document length to probe
--outputleaked.binOutput file for leaked data