CVE-2026-9754
MongoDB vulnerability analysis and mitigation

Overview

CVE-2026-9754 is a memory disclosure vulnerability in MongoDB Server that allows an authenticated user with the read role to read limited amounts of uninitialized stack memory via specially-crafted issuances of the filemd5 command. It affects MongoDB versions 8.2.0 through 8.2.9 and 8.3.0 through 8.3.2. The vulnerability was published on June 9, 2026, with a patch advisory added to the GitHub Advisory Database on June 10, 2026. It carries a CVSS v3.1 base score of 6.5 (Medium) and a CVSS v4.0 base score of 7.1 (High) (GitHub Advisory, MongoDB Jira).

Technical details

The root cause is classified as CWE-457 (Use of Uninitialized Variable): the filemd5 command handler does not properly initialize stack memory before use, allowing portions of that memory to be returned to the caller. An authenticated attacker with only the read role can exploit this remotely by issuing specially-crafted filemd5 commands over the network, requiring no user interaction and no elevated privileges beyond a basic read account. No public proof-of-concept code or detailed technical write-up has been identified at this time (GitHub Advisory, MongoDB Jira).

Impact

Successful exploitation results in a high confidentiality impact, as uninitialized stack memory contents — which may include sensitive data such as cryptographic material, credentials, or internal application state — can be disclosed to the attacker. There is no integrity or availability impact. The vulnerability is exploitable over the network by any authenticated user holding the read role, making it a risk in multi-tenant or shared MongoDB deployments where read access is broadly granted (GitHub Advisory).

Exploitation steps

  1. Obtain read-role credentials: Acquire valid MongoDB credentials with at least the read role on a target database — this could be through credential theft, phishing, or use of a legitimately provisioned low-privilege account.
  2. Connect to the target MongoDB instance: Use a MongoDB client (e.g., mongosh, mongo, or a driver) to authenticate to the vulnerable server running MongoDB 8.2.0–8.2.9 or 8.3.0–8.3.2.
  3. Issue a specially-crafted filemd5 command: Send a malformed or specially-crafted filemd5 command to the server. The filemd5 command is used to compute the MD5 hash of a file stored in GridFS; crafting it in a specific way triggers the uninitialized stack memory read.
  4. Collect disclosed memory: Parse the server's response to extract the uninitialized stack memory contents returned, which may contain sensitive data such as fragments of other in-memory data structures, credentials, or cryptographic material (GitHub Advisory, MongoDB Jira).

Indicators of compromise

  • Logs: MongoDB server logs showing repeated or anomalous filemd5 command invocations from a single authenticated user or connection, particularly with unusual or malformed parameters.
  • Network: Unusual volume of filemd5 requests originating from a single client IP, especially if the client does not normally interact with GridFS operations.
  • Behavioral: Authenticated read-role accounts issuing filemd5 commands against databases or collections where GridFS is not normally used by that account.

Mitigation and workarounds

MongoDB has released patched versions addressing this vulnerability: upgrade to MongoDB 8.2.10 or later for the 8.2.x branch, or MongoDB 8.3.3 or later for the 8.3.x branch (MongoDB Jira, GitHub Advisory). As a workaround prior to patching, restrict access to the filemd5 command to only explicitly authorized users and audit existing read-role assignments to minimize the number of accounts that could exploit this issue. Monitor MongoDB logs for anomalous filemd5 command usage patterns.

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