Updated Jul 15, 2026

Scanners

Confirm MongoDB hosts leak via OP_COMPRESSED

CVE-2025-14847 MongoDB memory disclosure scanner.

Free plan: 1 user, 3 execution slots, no card.

overview

What mongobleed does

mongobleed tests MongoDB listeners for CVE-2025-14847. It sends crafted OP_COMPRESSED packets, watches for leaked memory in the response, and flags hosts that bleed data. The check follows Joe Desimone's published exploit technique.

Feed --input a file of hosts in host, host:port, http(s), or mongodb URI form. Raise --concurrency for wide estates. --quiet prints only vulnerable hits; --verbose adds leaked-memory samples so you can confirm a finding before you escalate.

Place it after port discovery so only confirmed MongoDB listeners are tested. Prefer mongobleed for this single flaw; use nuclei when you need a multi-CVE template pack on the same host list.

image quay.io/trickest/mongobleed:1.0.3

use cases

mongobleed use cases

Test exposed MongoDB hosts for the bleed

Run mongobleed against hosts found listening on MongoDB ports to confirm which ones leak memory through the OP_COMPRESSED flaw.

Triage a large estate fast

Raise --concurrency to scan hundreds of hosts at once and use --quiet so the output lists only the vulnerable targets that need action.

Confirm findings with leaked samples

Enable --verbose to print samples of the disclosed memory, turning a yes/no result into evidence you can include in a report.

Chain after a port scan

Feed mongobleed the MongoDB hosts from naabu or masscan so the vulnerability check only touches services already confirmed open.

reference

mongobleed inputs and flags

9 inputs
NameTypeFlagDescription
inputFILE--inputFile of targets, one per line; supports host, host:port, http(s)://host:port, and mongodb://host:port.
concurrencySTRING--concurrencyNumber of concurrent connections (default 200).
timeoutSTRING--timeoutConnection timeout in seconds (default 5).
quietBOOLEAN--quietQuiet mode, show only vulnerable hosts.
verboseBOOLEAN--verboseVerbose output with leaked data samples.
doc-lenSTRING--doc-lenBSON document length for the exploit (default 100).
buffer-sizeSTRING--buffer-sizeInflated buffer size to trigger the leak (default 600).
all-resultsBOOLEAN--all-resultsInclude all results in output, not only vulnerable hosts.

Showing key inputs. mongobleed exposes 9 inputs in total.

Full flag reference (9 inputs)
NameTypeFlagDescription
inputFILE--inputFile containing targets (one per line, supports: host, host:port, http://host:port, https://host:port, mongodb://host:port)
quietBOOLEAN--quietQuiet mode (only show vulnerable hosts)
doc-lenSTRING--doc-lenBSON document length for exploit (default 100)
timeoutSTRING--timeoutConnection timeout in seconds (default 5)
verboseBOOLEAN--verboseEnable verbose output with leaked data samples
no-colorBOOLEAN--no-colorDisable colored output
all-resultsBOOLEAN--all-resultsInclude all results in output (not only vulnerable)
buffer-sizeSTRING--buffer-sizeInflated buffer size to trigger leak (default 600)
concurrencySTRING--concurrencyNumber of concurrent connections (default 200)

example

mongobleed command examples

mongobleed · command
# quiet scan of MongoDB targets for CVE-2025-14847
mongobleed --input mongo-hosts.txt --quiet --concurrency 200 --timeout 5
Illustrative
198.51.100.10:27017 VULNERABLE
203.0.113.25:27017 VULNERABLE
192.0.2.40:27017 not vulnerable
mongo.dev.example.com:27017 VULNERABLE
db.staging.example.com:27017 not vulnerable
198.51.100.88:27017 VULNERABLE
api.example.com:27017 not vulnerable

guidance

mongobleed vs alternatives

Reach for mongobleed when you already have MongoDB hosts and need a CVE-2025-14847 yes or no. It is not a discovery scanner. Feed a target list from a port scan, then use --quiet to surface only hosts that leak.

ToolPick it when
nucleiTemplate-driven scanner covering many CVEs. mongobleed stays purpose-built for this one OP_COMPRESSED memory disclosure check.
naabuPort scanner that finds MongoDB listeners to feed mongobleed. Run them in sequence, not as substitutes.
mongobleed-loopSame check wrapped for larger target sets when you need batch orchestration around the core scanner.

faq

mongobleed FAQ

CVE-2025-14847, a MongoDB memory disclosure reached through malformed OP_COMPRESSED packets. Hosts that return leaked memory are marked vulnerable.

Run with --verbose. It prints samples of the disclosed memory so you can verify the finding instead of trusting a status line alone.

One target per line: host, host:port, http(s) URLs, and mongodb URIs. That matches the usual output of a port scan.

Pass --quiet. Add --all-results when you need every checked target for an audit trail.

--doc-len sets BSON document length (default 100). --buffer-size sets the inflated buffer that triggers the leak (default 600). Leave defaults unless you are reproducing a lab condition.

Run mongobleed yourself

A host list feeds naabu to find open MongoDB ports, then mongobleed tests those hosts for CVE-2025-14847 and writes the vulnerable ones as a queryable output.

Facts on this page come from the live Trickest tool library.