MongoBleed (CVE‑2025‑14847): A Pre‑Auth MongoDB Memory Leak You Can Hunt at Scale
MongoDB mishandles length fields when decompressing zlib-compressed network messages, so a malformed message can make the server return uninitialised heap memory to an unauthenticated client. An attacker could repeatedly trigger this to leak credentials, queries, tokens or other secrets held in memory.
MongoDB is everywhere: startups, enterprises, internal tools, production APIs. That ubiquity is exactly what makes CVE‑2025‑14847, commonly referred to as MongoBleed, a vulnerability worth real attention from hunters and defenders alike.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the decompression code trusts attacker-supplied length fields in compressed messages and reads past the intended buffer, returning uninitialised heap memory.
Impact
An unauthenticated remote attacker could leak chunks of server memory, which may expose credentials, recent queries or internal tokens, though the leaked bytes are not guaranteed to be meaningful each time.
What the attacker needed
Network access to MongoDB port; zlib compression enabled on server; unpatched MongoDB instance
The fix
MongoDB should be patched to a fixed version, and until then network compression should be disabled and external access restricted.
How it was found
- Connect to the MongoDB service.
- Send a crafted compressed message.
- The server decompresses it incorrectly.
- Extra heap memory is included in the response.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
MongoDB is a database that programs talk to over the network. When it receives compressed messages it trusts numbers inside them that say how long the data is; if those numbers are wrong, the database can send back scraps of its own working memory instead of just the reply. That memory can contain passwords or other secrets, and no login is needed to ask for it.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.