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
cve-2025-14847 — MongoBleed: CVE-2025-14847 Memory Leak Discovery Tool | Kitploit
Tools/GitHubGitHub/kuyrathdaro/cve-2025-14847
Memory ForensicsVulnerability AnalysisExploitationPenetration TestingLearning & EducationDatabase Security
GitHubkuyrathdaro/cve-2025-14847

cve-2025-14847

MongoBleed: CVE-2025-14847 Memory Leak Discovery Tool

View Repository
48 months agoNot yet reviewed

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 Memory Leak Discovery Tool

MongoBleed is a high-performance security auditing tool designed to detect and demonstrate CVE-2025-14847. This vulnerability allows an unauthenticated, remote attacker to leak fragments of uninitialized heap memory from a MongoDB server by exploiting a length-mismatch flaw in the zlib decompression logic.

🛡️ Vulnerability Overview

  • CVE ID: CVE-2025-14847
  • Status: Actively exploited in the wild (as of late Dec 2025).
  • Severity: High (CVSS 8.7)
  • Impact: Disclosure of sensitive data (credentials, session tokens, AWS keys, etc.) without authentication.
  • Affected Versions: * 8.2.x < 8.2.3
    • 8.0.x < 8.0.17
    • 7.0.x < 7.0.28
    • 6.0.x < 6.0.27
    • 5.0.x < 5.0.32
    • 4.4.x < 4.4.30
    • All 3.6.x, 4.0.x, and 4.2.x versions.

🛠️ Testing Environment Setup

To safely test this script, use the following docker-compose.yml to spin up a vulnerable MongoDB 8.2.2 instance.

Run instance with:

root@kitploit:~
docker-compose up -d

💻 Usage

Ensure you have Python 3.8+ installed. No external libraries are required (uses built-in socket, zlib, and concurrent.futures).

Basic Scan

root@kitploit:~
python mongobleed.py --host 127.0.0.1 --port 27017

Advanced Options

root@kitploit:~
python mongobleed.py --host 127.0.0.1 --threads 50 --range 100 10000 --output leak_dump.bin

🔍 How It Works

The script sends a crafted OP_COMPRESSED (opcode 2012) message. It lies about the uncompressed length of the payload. The MongoDB server allocates a heap buffer of the "lied" size, decompresses a tiny amount of data into it, and then mistakenly returns the entire uninitialized buffer back to the client.

🛡️ Mitigation & Remediation

The only permanent way to resolve CVE-2025-14847 is to upgrade the MongoDB binary to a version that includes a fix for the OP_COMPRESSED length-validation logic.

Permanent Fix (Upgrade)

Apply the official patches from MongoDB. These versions include a mandatory check to ensure the decompressed data size matches the uncompressedSize field in the message header.

🛠️ Temporary Workarounds

If an immediate upgrade is not possible due to uptime requirements, you can block the attack vector by modifying the server configuration.

Disable Vulnerable Compressor (Recommended)

The vulnerability is specific to the zlib implementation. You can disable zlib and force the server to use snappy or zstd, which are not affected by this specific heap-over-read bug.

Via Command Line: Restart the mongod instance with the following flag (note the exclusion of zlib):

root@kitploit:~
mongod --networkMessageCompressors snappy,zstd

Via Configuration File (mongod.conf):

root@kitploit:~
net:
  compression:
    compressors: snappy,zstd

⚠️ Disclaimer

This tool is for educational and authorized security testing purposes only. Unauthorized access to computer systems is illegal. The author is not responsible for any misuse of this tool. Patch your MongoDB instances immediately to versions 8.2.3+ or 8.0.17+.

Download Tool
Major BranchRecommended Secure Version
MongoDB 8.2Upgrade to 8.2.3 or later
MongoDB 8.0Upgrade to 8.0.17 or later
MongoDB 7.0Upgrade to 7.0.28 or later
MongoDB 6.0Upgrade to 6.0.27 or later
MongoDB 5.0Upgrade to 5.0.32 or later
MongoDB 4.0Upgrade to 4.4.30 or later