MongoBleed: Pre-Auth Memory Leak in MongoDB Server
Atlas users are already patched; self-hosted MongoDB that untrusted networks can reach must be upgraded (or have zlib disabled) now, and internet-exposed instances should rotate credentials.
Must act: Anyone running self-managed MongoDB 3.6 through 8.2.2, especially instances reachable from the internet or from shared or untrusted networks.
Can relax: MongoDB Atlas customers (patched by MongoDB before disclosure) and self-hosted servers already on 8.2.3, 8.0.17, 7.0.28, 6.0.27, 5.0.32 or 4.4.30.
- Check every self-managed node's version: mongod --version or db.version() in mongosh
- Upgrade to the fixed release in your branch; move 3.6/4.0/4.2 deployments to a supported, patched branch
- If you cannot upgrade immediately, remove zlib: start mongod/mongos with --networkMessageCompressors snappy,zstd (or set net.compression.compressors: snappy,zstd)