Cato CTRL Details MongoDB CVE-2026-25611 Memory-Exhaustion DoS

· Original article ↗

Summary

Cato CTRL researcher Vitaly Simonovich reports that CVE-2026-25611 lets unauthenticated network attackers trigger large memory allocations through MongoDB OP_COMPRESSED messages, potentially crashing exposed servers. Patches and mitigations are available.

Key points

  • The report says MongoDB allocates memory based on the attacker-controlled OP_COMPRESSED `uncompressedSize` field before validating the decompressed data.
  • The flaw can be triggered before authentication when an attacker can reach a vulnerable MongoDB server.
  • Cato CTRL’s tests found that a roughly 47KB message can cause a 48MB allocation; 10 connections reportedly crashed a 512MB test instance.
  • The article identifies MongoDB versions with compression enabled, starting with version 3.4, as affected; compression has been enabled by default since version 3.6.
  • The article reports patches in versions 8.2.4, 8.0.18, and 7.0.29.
  • Recommended mitigations include restricting network access, limiting connections, monitoring memory, and disabling compression when not needed.

Article Details

Attack Vectors
  • Unauthenticated attackers can send crafted MongoDB OP_COMPRESSED messages with a large uncompressedSize value, causing memory allocation before the server validates the decompressed data.
  • Concurrent connections carrying these messages can exhaust server memory and cause the MongoDB process to be killed by the OOM killer.
Defensive Notes
  • Upgrade affected MongoDB deployments to patched versions: 8.2.4, 8.0.18, or 7.0.29, as applicable.
  • Restrict database network access to trusted networks; avoid allowing access from anywhere.
  • Use connection limits and OS-level connection rate limiting, and monitor for unusual memory use and suspicious MongoDB traffic.
  • Disable network message compression if it is not needed.

MITRE ATT&CK

CVE

People

Vendors

Products

Tools

Related Articles