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-Detector-CVE-2025-14847 — Mongobleed Detector CVE-2025-14847 | Kitploit
Tools/GitHubGitHub/keraattin/mongobleed-detector-cve-2025-14847
Vulnerability ScannersExploitationInformation GatheringNetwork SecurityPenetration TestingDatabase Security
GitHubkeraattin/mongobleed-detector-cve-2025-14847

Mongobleed-Detector-CVE-2025-14847

Mongobleed Detector CVE-2025-14847

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
17 months agoNot yet reviewed

MongoBleed Scanner

A professional vulnerability scanner for CVE-2025-14847 (MongoBleed) - MongoDB Memory Leak Vulnerability.

root@kitploit:~
+================================================================+
|     MongoBleed Scanner v1.3.0                                  |
|     CVE-2025-14847 - MongoDB Memory Leak Vulnerability         |
+================================================================+

Table of Contents

  • About the Vulnerability
  • Features
  • Requirements
  • Usage
  • Understanding Results
  • How It Works
  • Remediation
  • Legal Disclaimer

About the Vulnerability

CVE-2025-14847 (MongoBleed) is a critical memory leak vulnerability in MongoDB's zlib compression handling.

Technical Summary

When processing compressed messages (OP_COMPRESSED with zlib), MongoDB allocates a buffer based on the uncompressedSize field provided by the client. A malicious client can specify a larger size than the actual data, causing MongoDB to return uninitialized heap memory containing sensitive data from previous operations.

Affected Versions

CVSS Score

  • Score: 8.7 (High)
  • Vector: Network exploitable, no authentication required
  • Impact: Confidentiality breach - sensitive data exposure

Features

  • Multi-target scanning (single, comma-separated, or file-based)
  • Automatic MongoDB version detection
  • Wire protocol fallback for auth-protected instances (MongoDB 8.2+)
  • zlib compression status detection
  • Export results to TXT, JSON, or CSV
  • No external dependencies (Python standard library only)

Requirements

  • Python 3.7 or higher
  • Network access to target MongoDB port (default: 27017)

No additional packages required. The scanner uses only Python's standard library.


Usage

Single Target

root@kitploit:~
# Default port (27017)
python scanner.py -t 192.168.1.100

# Custom port
python scanner.py -t 192.168.1.100:27018

Multiple Targets

root@kitploit:~
# Comma-separated
python scanner.py -t 192.168.1.100,192.168.1.101:27018,db.example.com

Targets from File

root@kitploit:~
# targets.txt (one per line, # for comments)
# 192.168.1.100
# 192.168.1.101:27018
# mongodb.example.com

python scanner.py -f targets.txt

Export Results

root@kitploit:~
# Plain text
python scanner.py -t 192.168.1.100 -o report.txt

# JSON (detailed)
python scanner.py -t 192.168.1.100 -o report.json

# CSV (spreadsheet)
python scanner.py -t 192.168.1.100 -o report.csv

Options


Understanding Results

Status Indicators

Example Output

root@kitploit:~
+================================================================+
|     MongoBleed Scanner v1.3.0                                  |
|     CVE-2025-14847 - MongoDB Memory Leak Vulnerability         |
+================================================================+
|  LEGAL: Authorized security testing only. Obtain permission    |
|         before scanning systems you do not own.                |
+================================================================+

[*] Loaded 4 target(s)

SCAN RESULTS:
----------------------------------------------------------------------
  [!] 192.168.1.100:27017       VULNERABLE  v8.0.16  zlib:ON  -> Update to 8.0.17
  [?!] 192.168.1.101:27018      POSSIBLY VULNERABLE  v~8.2.x  zlib:ON  -> Check version, update to 8.2.3
  [+] 192.168.1.102:27017       SAFE        v8.0.17  zlib:ON
  [~] 192.168.1.103:27017       MITIGATED   v8.0.16  zlib:OFF  (zlib disabled)

======================================================================
  SCAN SUMMARY
======================================================================
  Total targets scanned:  4
  Reachable:              4
  Unreachable:            0
----------------------------------------------------------------------
  [!]  VULNERABLE:        1
  [?!] POSSIBLY VULN:     1  (version estimated, needs verification)
  [+]  SAFE (patched):    1
  [~]  MITIGATED:         1  (vulnerable version but zlib disabled)
  [?]  UNKNOWN:           0
======================================================================

  VULNERABLE TARGETS REQUIRING IMMEDIATE ACTION:
----------------------------------------------------------------------
    192.168.1.100:27017  v8.0.16  zlib:ON  -> Upgrade to 8.0.17

Version Display

  • v8.0.16 — Exact version detected
  • v~8.2.x — Estimated from wire protocol (~ indicates estimation)

Estimation occurs when MongoDB 8.2+ requires authentication for version commands. Scanner falls back to wire protocol version mapping.


How It Works

Detection Process

root@kitploit:~
1. TCP Connection
   └── Connect to MongoDB port

2. Version Detection
   ├── Send 'hello' command (get wire version, no auth required)
   └── Send 'buildInfo' command (get exact version, may need auth)

3. Compression Check
   └── Send zlib-compressed message, check if server accepts

4. Assessment
   └── Compare version + zlib status against vulnerability database

Wire Protocol Version Mapping

When exact version unavailable (auth required), scanner estimates from maxWireVersion:

Wire VersionMongoDB Branch
258.0.x
278.2.x
217.0.x
176.0.x
135.0.x

Vulnerability Logic

root@kitploit:~
VULNERABLE = (version in vulnerable range) AND (zlib enabled)
MITIGATED  = (version in vulnerable range) AND (zlib disabled)
SAFE       = (version >= fixed version)

Remediation

Option 1: Update MongoDB (Recommended)

Option 2: Disable zlib Compression (Temporary)

root@kitploit:~
# mongod.conf
net:
  compression:
    compressors: snappy,zstd  # Remove 'zlib'

Or via command line:

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

Additional Recommendations

  • Restrict MongoDB port access to trusted networks
  • Enable authentication
  • Enable TLS/SSL
  • Monitor for suspicious connection patterns

Legal Disclaimer

root@kitploit:~
THIS TOOL IS PROVIDED FOR AUTHORIZED SECURITY TESTING ONLY.

You must obtain proper authorization before scanning any systems
you do not own or have explicit written permission to test.

Unauthorized access to computer systems is illegal.

The authors assume no liability for misuse of this tool.

Exit Codes

CodeMeaning
0All targets safe or mitigated
1Connection errors occurred
2Vulnerable targets found

Useful for scripting:

root@kitploit:~
python scanner.py -t mongodb.example.com
if [ $? -eq 2 ]; then
    echo "ALERT: Vulnerable MongoDB detected!"
fi

References

  • MongoDB Wire Protocol
  • MongoDB Release Notes

Changelog

v1.3.0

  • Wire protocol fallback for MongoDB 8.2+ (auth-protected)
  • "POSSIBLY VULNERABLE" status for estimated versions
  • Improved detection accuracy

v1.2.0

  • Multi-method version detection
  • Better BSON parsing

v1.1.0

  • zlib status in output
  • Professional disclaimer
  • 8.2.x support

v1.0.0

  • Initial release

For authorized security testing and research purposes only.

Download Tool
BranchVulnerable VersionsFixed Version
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
4.4.x4.4.0 - 4.4.294.4.30
≤4.2All versionsEOL - No patch
OptionDescription
-t, --targetsComma-separated targets (host or host:port)
-f, --fileFile with targets (one per line)
-o, --outputExport file (.txt, .json, .csv)
-q, --quietShow summary only
-v, --versionShow version
-h, --helpShow help
SymbolStatusDescription
[!]VULNERABLEConfirmed vulnerable, immediate action required
[?!]POSSIBLY VULNERABLEVersion estimated, needs manual verification
[+]SAFEPatched version
[~]MITIGATEDVulnerable version but zlib disabled
[?]UNKNOWNCould not determine status
[-]UNREACHABLEConnection failed
Current VersionUpdate To
8.2.0 - 8.2.28.2.3+
8.0.0 - 8.0.168.0.17+
7.0.0 - 7.0.277.0.28+
6.0.0 - 6.0.266.0.27+
5.0.0 - 5.0.315.0.32+
4.4.0 - 4.4.294.4.30+