Cato CTRL senior security researcher Vitaly Simonovich discovered CVE-2026-25611, a high-severity flaw rated 7.5 that lets unauthenticated attackers crash MongoDB servers using crafted messages.
This issue affects versions from 3.4 and later with compression enabled by default since 3.6, including MongoDB Atlas setups.nvd.
Vulnerability Details
The flaw stems from MongoDB’s handling of OP_COMPRESSED messages in its wire protocol on port 27017.
Attackers craft packets where the uncompressedSize field claims up to 48MB, but the actual zlib-compressed payload is just 47KB, creating a 1027:1 memory amplification.
The server in message_compressor_manager.cpp allocates this buffer before validating decompression, holding memory per connection until it closes.
No authentication is needed, as exploitation happens pre-auth during wire protocol parsing. Shodan shows over 207,000 internet-exposed MongoDB instances, many vulnerable if access is set to 0.0.0.0/0.
Cato responsibly disclosed it via MongoDB’s bug bounty, leading to patches.catonetworks+3
Attack Impact
A threat actor sends concurrent connections, each forcing 48MB allocation. Tests reveal a 512MB instance crashes in seconds with 10 connections (457KB traffic), while an 8GB server needs 198 (~9MB).
Roughly 20 connections per GB scale linearly after base 100MB usage, downing even 64GB enterprise servers with 1,350 links.
Atlas free tiers (M0, 512MB) fall with ~10 hits; M30 (8GB) with 198. Kernel OOM killer triggers exit code 137, as memory exhausts fast from a single machine.
This turns compression, a performance feature, into a DoS vector.nvd.
MongoDB’s binary wire protocol uses OpCode 2012 for OP_COMPRESSED, supporting Snappy, zlib, or zstd after handshake.
Headers include messageLength, IDs, original opCode, uncompressedSize (attacker-controlled), compressorId, and payload.
Decompression flow parses the header, allocates blindly, decompresses, and then checks the size too late.
CWE-405 classifies it as asymmetric resource consumption. Patched versions: 8.2.4, 8.0.18, 7.0.29; update immediately if compression is on.nvd.
Limit exposure via firewalls, VPNs, IP lists; set maxIncomingConnections; monitor memory spikes. Disable compression if unused: –networkMessageCompressors=disabled.
Watch for TCP floods to 27017, OP_COMPRESSED with huge uncompressedSize but tiny packets, idle connections post-setup, OOM logs.
Cato IPS blocks malformed packets; use segmentation, MDR for floods. Review exposures now 207,000+ at risk, demands urgent patching.
Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.