Junglewise Threat Intelligence

CVE-2026-13072: MongoDB Server heap overflow in aggregation pipeline processing

CVE-2026-13072 · Severity: high · CVSS 8.1 · Published 2026-07-22

Technologies: MongoDB Server. Vendors: MongoDB.

Executive brief

A vulnerability exists in MongoDB Server when a specific, non-default 'compute mode' is enabled. This flaw allows an attacker to send specially crafted data that can crash the database service or cause other unpredictable behavior. While this requires a specific configuration to be active, successful exploitation could impact the availability and integrity of the database.

Technical details

The vulnerability is classified as a heap-based buffer overflow (CWE-122) occurring within the MultiBsonStreamCursor during aggregation pipeline processing. It is triggered by insufficient validation of externally sourced BSON data when the non-default 'compute mode' is enabled on a standalone mongod instance. An unauthenticated network attacker can exploit this to cause memory corruption, leading to process termination (DoS) or potentially arbitrary code execution. The attack complexity is considered high as it requires a specific, non-default configuration. Patches are available in versions 7.0.39, 8.0.28, 8.2.12, 8.3.7, and 9.0.0-rc1.

Affected products

  • MongoDB MongoDB Server 7.0 < 7.0.39, 8.0 < 8.0.28, 8.2.0 < 8.2.12, 8.3.0 < 8.3.7

Timeline

  • 2026-06-08: other: Issue created in MongoDB Jira
  • 2026-07-22: advisory: CVE published by NVD and MongoDB

References