CVE-2026-13076
MongoDB vulnerability analysis and mitigation

Overview

CVE-2026-13076 is a Denial of Service vulnerability in MongoDB Server's aggregation framework that allows an authenticated user to cause the mongod process to be terminated by the operating system under memory pressure. The vulnerability affects MongoDB Server versions 8.3.0 through 8.3.7 (exclusive), and was published on July 22, 2026. It has a CVSS v3.1 base score of 6.5 (Medium) and a CVSS v4.0 base score of 7.1 (High) (GitHub Advisory).

Technical details

The root cause is classified as CWE-770 (Allocation of Resources Without Limits or Throttling): a specific data type conversion operation within MongoDB's aggregation framework consumes disproportionate amounts of memory without adequate resource limits or throttling. An attacker exploits this by crafting and executing an aggregation query that triggers the problematic type conversion, causing the mongod process to exhaust available memory and be killed by the OS out-of-memory (OOM) killer. Exploitation requires two preconditions: the attacker must have write access to the database and the ability to execute aggregation queries — meaning unauthenticated users cannot exploit this vulnerability (GitHub Advisory, MongoDB Jira).

Impact

Successful exploitation results in a complete availability loss of the affected mongod process, as the operating system terminates it under memory pressure. There is no impact to confidentiality or data integrity — the vulnerability is purely a Denial of Service condition. Applications and services dependent on the MongoDB instance would experience an outage until the mongod process is restarted, and repeated exploitation could result in sustained unavailability (GitHub Advisory).

Exploitation steps

  1. Obtain Authenticated Access: Acquire valid MongoDB credentials with write access to at least one database and permission to run aggregation queries (e.g., through credential theft, insider access, or a compromised application account).
  2. Connect to the MongoDB Instance: Use a MongoDB client (e.g., mongosh, PyMongo, or the MongoDB driver) to connect to the target mongod instance on its default port (27017) or configured port.
  3. Craft a Malicious Aggregation Query: Construct an aggregation pipeline that triggers the specific data type conversion operation known to cause disproportionate memory consumption. The exact operator or conversion type is not publicly disclosed, but it involves a type conversion stage within the aggregation framework.
  4. Execute the Query: Run the crafted aggregation pipeline against a collection in the database. The mongod process begins consuming excessive memory during the conversion operation.
  5. Trigger OOM Termination: As memory consumption grows unchecked, the operating system's OOM killer terminates the mongod process, causing a denial of service for all connected clients and applications (GitHub Advisory, MongoDB Jira).

Indicators of compromise

  • Logs: Sudden mongod process termination entries in system logs (e.g., /var/log/syslog or /var/log/messages) with OOM killer messages such as Out of memory: Kill process [PID] (mongod); MongoDB logs showing aggregation queries with type conversion operations immediately before the crash.
  • Process: Unexpected termination of the mongod process without a graceful shutdown signal; repeated restarts of the MongoDB service in a short time window.
  • Network: Aggregation query traffic from an authenticated user account that is unusual in frequency or volume, particularly targeting type conversion operations in the aggregation pipeline.
  • System Metrics: Sudden spike in memory consumption by the mongod process to near-system-limit levels, followed by process termination, visible in monitoring tools (e.g., top, htop, Prometheus/Grafana MongoDB metrics).

Mitigation and workarounds

MongoDB has released a patch in version 8.3.7; users running MongoDB Server 8.3.0 through 8.3.6 should upgrade to 8.3.7 or later (GitHub Advisory, MongoDB Jira). As interim workarounds, restrict aggregation query execution and database write access to only trusted and necessary users by applying the principle of least privilege. Additionally, implement OS-level memory limits (e.g., cgroups) on the mongod process and configure MongoDB's operationProfiling and query rate limiting to detect and throttle abnormal aggregation workloads.

Additional resources


SourceThis report was generated using AI

Related MongoDB vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-9737HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026
CVE-2026-13077HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026
CVE-2026-13076HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026
CVE-2026-13075HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026
CVE-2026-13078MEDIUM6.3
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management