CVE-2026-11933
MongoDB vulnerability analysis and mitigation

Overview

CVE-2026-11933 is a use-after-free vulnerability in MongoDB Server's server-side JavaScript engine, triggered when converting BSON documents to JavaScript arrays. An authenticated user with read privileges who can execute server-side JavaScript (e.g., via $where or $function operators) can cause the server to access already-freed memory. Affected versions span multiple MongoDB release lines: 4.4.0–4.4.30, 5.0–5.0.33, 6.0–6.0.28, 7.0.0–7.0.36, 8.0.0–8.0.25, 8.2.0–8.2.10, and 8.3.0–8.3.3. The vulnerability was published on June 12, 2026, and carries a CVSS v4 base score of 8.7 (High) and a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, ENISA EUVD).

Technical details

The root cause is a use-after-free condition (CWE-416, with an associated out-of-bounds write classification CWE-787) in MongoDB's server-side JavaScript engine during BSON-to-JavaScript array conversion. When a specially crafted BSON document is processed by the JavaScript engine, memory that has been freed is subsequently accessed, potentially allowing an attacker to read or corrupt heap memory. Exploitation requires network access and low-privilege authenticated credentials (read access), with no user interaction or special attack conditions needed. The vulnerability is reachable through MongoDB query operators that invoke server-side JavaScript, specifically $where and $function (GitHub Advisory, MongoDB Jira).

Impact

Successful exploitation can result in disclosure of sensitive information from the mongod process memory — potentially exposing credentials, query data, or other in-memory content — or a denial of service through a server crash. The impact is confined to the vulnerable MongoDB instance (no subsequent system impact), but memory disclosure could facilitate further attacks or data exfiltration. Availability of the database service may be fully disrupted if the server crashes (GitHub Advisory, ENISA EUVD).

Exploitation steps

  1. Reconnaissance: Identify MongoDB instances running vulnerable versions (4.4.0–4.4.30, 5.0–5.0.33, 6.0–6.0.28, 7.0.0–7.0.36, 8.0.0–8.0.25, 8.2.0–8.2.10, or 8.3.0–8.3.3) using network scanning tools such as Shodan, Censys, or nmap targeting port 27017.
  2. Authentication: Obtain or use existing low-privilege credentials (read access to any database collection is sufficient) to authenticate to the MongoDB instance.
  3. Craft malicious query: Construct a MongoDB query using the $where or $function operator that passes a specially crafted BSON document designed to trigger the use-after-free condition during BSON-to-JavaScript array conversion in the server-side JS engine.
  4. Trigger vulnerability: Submit the crafted query to the target MongoDB server. The server-side JavaScript engine processes the BSON document, frees memory, and then accesses the freed memory region.
  5. Achieve objective: Depending on heap layout and timing, the attacker may read sensitive data from mongod process memory (e.g., credentials, query results, internal state) or cause the server to crash, resulting in denial of service (GitHub Advisory, MongoDB Jira).

Indicators of compromise

  • Logs: Unexpected mongod crashes or segmentation faults in MongoDB server logs (mongod.log); repeated errors related to JavaScript engine execution or BSON conversion failures; unusual $where or $function query patterns from non-administrative users in the MongoDB audit log.
  • Process: Abnormal termination of the mongod process; core dump files generated in the MongoDB working directory following a crash.
  • Network: Authenticated connections from unexpected source IPs submitting queries containing $where or $function operators to MongoDB port 27017; high-frequency query submissions from a single authenticated user targeting JavaScript-enabled operators.
  • File System: Unexpected core dump files (e.g., core, core.mongod.<pid>) in the MongoDB data or working directory following a server crash.

Mitigation and workarounds

MongoDB has released patched versions addressing this vulnerability; users should upgrade to versions beyond the affected ranges (i.e., 4.4.31+, 5.0.34+, 6.0.29+, 7.0.37+, 8.0.26+, 8.2.11+, or 8.3.4+) (ENISA EUVD). Percona Server for MongoDB users should consult Percona's security advisory for patched builds (Percona Blog). As a workaround prior to patching, restrict or disable server-side JavaScript execution by setting security.javascriptEnabled: false in the MongoDB configuration file (or using --noscripting at startup), which disables $where and $function operators. Additionally, limit read privileges to only trusted users and monitor for unusual server-side JavaScript activity.

Community reactions

Percona published a dedicated security advisory covering CVE-2026-11933 alongside CVE-2026-9740 for Percona Server for MongoDB, indicating vendor-ecosystem awareness and coordinated response (Percona Blog). A Reddit discussion in the MongoDB community referenced related MongoDB CVEs, reflecting community interest in the vulnerability class (Reddit). Security news outlet SecurityOnline.info and TheHackerWire covered the vulnerability shortly after disclosure (TheHackerWire).

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