MongoBleed Flaw in MongoDB Leaks Heap Memory and Faces Active Exploitation
Active Exploitation · 2 sources · Updated 4mo ago · First seen Jan 8, 2026

MongoDB patched a high-severity information disclosure vulnerability, CVE-2025-14847 or MongoBleed, that allows a remote unauthenticated attacker to read sensitive heap memory from vulnerable servers. The flaw affects OP_COMPRESSED messages using zlib: by manipulating the BSON uncompressedSize field, an attacker can make MongoDB allocate an oversized buffer without validating the claimed length, which can cause the server to return uninitialized memory. Researchers said the leak can expose cleartext passwords, credentials, API keys, and other secrets, and can be amplified when a malformed BSON object omits a null terminator, causing MongoDB to continue parsing memory until a null byte is found and include leaked contents in an error response.
The vulnerability has been reported as actively exploited, and public proof-of-concept code is available. Affected releases include MongoDB Server 8.2 before 8.2.3, 8.0 before 8.0.17, 7.0 before 7.0.28, 6.0 before 6.0.27, 5.0 before 5.0.32, 4.4 before 4.4.30, and all versions of 4.2, 4.0, and 3.6. Defenders were urged to upgrade immediately, disable zlib request compression until patching is complete, restrict Internet exposure of TCP port 27017, review logs for exploitation attempts, and rotate passwords and cryptographic material that may have been exposed. Researchers also warned that internet-scale exposure could be significant, citing tens of thousands to more than 200,000 internet-accessible MongoDB instances identified by scanning services.
Why it matters
Impact assessment
MongoBleed, tracked as CVE-2025-14847, affects MongoDB Server deployments across multiple major release lines and enables remote unauthenticated disclosure of heap memory. The impact is severe because exposed memory can contain cleartext passwords, credentials, API keys, and other secrets, creating immediate risk of follow-on compromise, data exposure, and reputational damage.
The exposure scope is potentially broad due to large numbers of internet-accessible MongoDB instances and the flaw's network-reachable nature over the default MongoDB service port. Exploitation is reported in the wild and public proof-of-concept code is available, which materially raises short-term risk for any unpatched or internet-exposed deployment.
Affected populations and products
- MongoDB Server 8.2 before 8.2.3
- MongoDB Server 8.0 before 8.0.17
- MongoDB Server 7.0 before 7.0.28
- MongoDB Server 6.0 before 6.0.27
- MongoDB Server 5.0 before 5.0.32
- MongoDB Server 4.4 before 4.4.30
- All MongoDB Server 4.2 versions
- All MongoDB Server 4.0 versions
- All MongoDB Server 3.6 versions
Severity and business consequences
- Remote unauthenticated access path increases likelihood of opportunistic exploitation.
- Information disclosure can expose secrets that enable lateral movement, database takeover, cloud abuse, or application compromise.
- Operational impact includes emergency patching, credential rotation, incident review, and possible service reconfiguration.
- Reputational and regulatory impact is possible if leaked memory contains customer data or authentication material.
Scope and exploitation status
- Active exploitation is reported.
- Public proof-of-concept exploit code exists.
- Internet-scale exposure may be significant:
- Shodan reportedly observed more than 213,000 internet-exposed MongoDB instances.
- Censys reportedly observed more than 87,000 internet-exposed MongoDB instances.
- Researchers also cited tens of thousands to more than 200,000 exposed instances overall.


