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

Source: https://junglewise.ai/threats/cve-2026-13072-mongodb-server-heap-overflow-in-aggregation-pipeline-processing  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-22. Updated: 2026-07-22  
License: CC BY 4.0 with a link back

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

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.

## Quick answers

**Is CVE-2026-13072 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-13072 being exploited in the wild.

**How severe is CVE-2026-13072?** High severity, with a CVSS score of 8.1, published 22 July 2026.

**Which products and versions are affected?** 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.

**Is there a fix for CVE-2026-13072?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-13072 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-13072?** Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## 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

- [https://jira.mongodb.org/browse/SERVER-128494](https://jira.mongodb.org/browse/SERVER-128494)
