Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 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

View Repository
13410 months agoNot yet reviewed
Share

MongoBleed Scanner

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

+================================================================+
|     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

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

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

# Default port (27017)
python scanner.py -t 192.168.1.100

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

Multiple Targets

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

Targets from File

# 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

# 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

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

Understanding Results

Status Indicators

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

Example Output

+================================================================+
|     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

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

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)

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+

Option 2: Disable zlib Compression (Temporary)

# mongod.conf
net:
  compression:
    compressors: snappy,zstd  # Remove 'zlib'

Or via command line:

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

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:

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    867
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    544
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    385
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    302
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    279

Explore all tools

Browse our collection of tools

View all tools →