Skip to content
Info disclosure Write-up Advanced

MongoBleed (CVE-2025-14847) exploited in the wild: everything you need to know

MongoDB Server's zlib decompression logic mishandled message lengths, allowing unauthenticated attackers to leak uninitialised heap memory. Attackers could exfiltrate sensitive in-memory data and credentials by sending malformed compressed packets.

Merav Bar Follow

Published on wiz.io

MongoDB has disclosed a high-severity unauthenticated information leak vulnerability, tracked as CVE-2025-14847 and dubbed MongoBleed (after HeartBleed), affecting multiple supported and legacy MongoDB Server versions. The flaw can be exploited remotely by unauthenticated attackers with low complexity, potentially…

Merav Bar, on wiz.io

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

The zlib decompression code returned the allocated buffer size instead of the actual decompressed data length, so the server parsed uninitialised heap memory as part of the message.

Impact

Unauthenticated remote attackers could leak fragments of sensitive in-memory data and credentials; exploitation is a game of chance requiring many requests, and MongoDB Atlas instances were patched automatically.

What the attacker needed

Network access to MongoDB port; zlib compression enabled on server; No authentication required

The fix

Upgrade to a patched MongoDB version (8.2.3, 8.0.17, 7.0.28, 6.0.27, 5.0.32, or 4.4.30); if that is not possible, disable zlib compression and restrict network exposure.

How it was found

  1. Send a malformed OP_COMPRESSED message with a fake uncompressedSize field larger than the actual payload.
  2. The server allocates a large heap buffer based on the fake size and decompresses the small payload into the start of it.
  3. The server parses the whole buffer as BSON, reading uninitialised memory after the valid document.
  4. The parser fails and the error message may quote the invalid bytes, leaking memory contents back to the client.

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 server. When it receives compressed network messages, it decompresses them before checking who is sending them. A mistake in that decompression step let an attacker trick the server into sending back chunks of its own memory, which could contain secrets like passwords. No login was needed.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Merav Bar

View all

27 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.