Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain key-vault write access or control returning server
-
DeliveryCraft key document with duplicate masterKey fields
-
ExploitClient processes and cleans up key document
-
ExecutionType confusion triggers invalid free / bad memory access
-
ImpactCrash client or corrupt process memory
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Type safety enforcement
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target application must use MongoDB libmongocrypt with Client-Side Field Level Encryption or Queryable Encryption enabled - this is an opt-in feature, not default MongoDB usage. The attacker must either (1) be an authenticated actor with permission to modify key vault documents, or (2) control a MongoDB server that returns a malicious key document to the client. The specific trigger is a key document containing duplicate masterKey fields, which causes provider-specific KMS data to be handled as an incompatible type during key-document cleanup. Limiting factors: encryption must be in use, some privilege (key-vault write access, PR:L) or a malicious/compromised server is required, and the confirmed impact is client-side crash or memory corruption rather than confirmed remote code execution. |
| Impact | This is a genuine but conditional memory-safety flaw (CWE-843 type confusion) in MongoDB's libmongocrypt, the library underpinning Client-Side Field Level Encryption (CSFLE) and Queryable Encryption. The source-provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, score 8.7) indicates a network-reachable, low-complexity, low-privilege issue with no user interaction. However, the PR:L metric is important: exploitation is NOT unauthenticated - it requires an actor already able to modify key vault documents, or control of a MongoDB server that returns a malicious key document, so a trust boundary must already be crossed. The source rates all three impact dimensions High (VC:H/VI:H/VA:H), but the description's concrete, confirmed outcomes are application termination (DoS) and process-memory corruption via invalid frees/invalid memory access; full confidentiality compromise or code execution is plausible for invalid-free bugs but is NOT explicitly claimed, so the VC:H/VI:H ratings should be treated as conservative worst-case rather than demonstrated. No EPSS score, no CISA KEV listing, and no public exploit code are present in the supplied data, which argues against imminent widespread exploitation. Net: a real priority for environments actively using CSFLE/Queryable Encryption against untrusted servers or multi-tenant key vaults, but lower practical urgency than the 8.7 suggests for deployments where the key vault and server are fully trusted. |
| Exploit ScenarioDerived | An authenticated user with write access to the encryption key vault (or an attacker controlling/compromising the MongoDB server the client talks to) stores or returns a data-encryption-key document containing duplicate masterKey fields. When the libmongocrypt-based client later processes and cleans up that key document, provider-specific KMS data is treated as the wrong type, causing invalid memory access and invalid frees that crash the client application or corrupt its memory. No public proof-of-concept exploit was identified in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Memory corruption in MongoDB libmongocrypt lets an authenticated actor who can modify key vault documents - or a malicious or compromised MongoDB server - crash or corrupt the memory of any client application that has Client-Side Field Level Encryption (CSFLE) or Queryable Encryption enabled. The trigger is a crafted key document containing duplicate masterKey fields, which causes provider-specific KMS data to be mis-typed during key-document cleanup, producing invalid memory access and invalid frees (CWE-843 type confusion). Scored 8.7 under CVSS 4.0, while our own assessment is more conservative at CVSS 3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H, placing the confirmed impact at client-side crash and memory corruption rather than proven remote code execution; no public exploit code identified at time of analysis, and exploitation requires that encryption be in use plus key-vault write privileges (PR:L) or a hostile server.
RemediationAI
Patch status: no vendor-released fix version is identified in the available data; MONGOCRYPT-964 (https://jira.mongodb.org/browse/MONGOCRYPT-964) is the vendor tracking issue and should be monitored, and once a fixed libmongocrypt release is published, upgrade the library and every MongoDB driver/mongosh build that bundles it, then rebuild applications that link it statically. Until then, apply targeted compensating controls: enforce strict least privilege on the key vault database so that only a minimal set of trusted principals can write to the datakeys collection (this directly removes the PR:L path, though it does not protect against a malicious server); treat the MongoDB server as a trust boundary by using TLS with server certificate verification and connecting only to servers you operate, since a hostile server can also deliver the malformed key document; reject or sanitize key documents that contain duplicate masterKey fields at ingestion, if your workflow allows pre-validation of key vault contents. Where CSFLE/Queryable Encryption is not strictly required, disabling automatic encryption eliminates the attack surface entirely, at the cost of losing field-level data protection. Also note that because the failure mode is an invalid free rather than a controlled overflow, memory-hardening options (ASLR plus allocator hardening such as hardened malloc or jemalloc guards) can convert the corruption into a clean crash instead of exploitable corruption, but they are mitigations, not fixes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libmongocrypt is the C library that implements MongoDB's automatic encryption logic; it is embedded in MongoDB drivers and mongosh to provide Client-Side Field Level Encryption (CSFLE) and Queryable Encryption, parsing key vault documents and marshalling masterKey/KMS provider metadata (AWS, Azure, GCP, KMIP, local) into the format the driver uses to derive data encryption keys. The root cause is CWE-843, type confusion: when a key document contains duplicate masterKey fields, the cleanup routine for that document handles provider-specific data as though it were a different, incompatible type. Because the free/cleanup path is driven by a type tag that does not match the actual allocated object, the process performs invalid memory accesses and invalid frees. The CPE cpe:2.3:a:mongodb:libmongocrypt:*:*:*:*:*:*:*:* is a wildcard, indicating the advisory does not enumerate a bounded version range and no fixed version is published in the CVE record. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) and our CVSS 3.1 assessment agree on network attack vector, low complexity, and PR:L (authenticated) with no user interaction, but we rate confidentiality and integrity impact as Low rather than High because remote code execution was not confirmed - the demonstrated outcome is termination or memory corruption of the client process. The associated tags (Information Disclosure, Memory Corruption, MongoDB, Hashicorp, Libmongocrypt) reflect that a mis-freed buffer may expose or overwrite adjacent heap data.
Know when MongoDB gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-delivered malicious key document (AV:N), trivially crafted duplicate fields (AC:L), requires key-vault write or malicious server (PR:L); confirmed impact is client crash (A:H) with only possible limited memory disclosure/corruption (C:L/I:L), no scope change (S:U).
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
Improper state management in MongoDB libmongocrypt can cause provider-specific data to be treated as an incompatible type when cleaning up a key document containing duplicate masterKey fields. An authenticated actor who can modify key vault documents, or a server that returns such a key document, can cause invalid memory access and invalid frees in the client process. This can terminate the application or corrupt process memory.
Articles & Coverage 2
Executive ViewAI
MongoDB's libmongocrypt library, embedded in applications that use Client-Side Field Level Encryption or Queryable Encryption, contains an unpatchable-at-present memory corruption flaw that lets an authenticated actor with key-vault write access - or a compromised MongoDB server - crash or corrupt the memory of the client application. Because this library ships inside customer-facing and internal applications rather than on a hardened server, the blast radius extends to any business service that has adopted MongoDB encryption features, and an outage or memory-corruption event in those services could interrupt service availability and expose sensitive encrypted data workflows. No public exploit code has been identified, and confirmed impact is limited to client-side crash and memory corruption rather than proven remote code execution, but the absence of a vendor fix means leadership should treat this as a standing operational risk requiring compensating controls.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict key-vault write access to trusted administrators and enforce least privilege on key documents; monitor and alert on key-document changes, especially duplicate masterKey fields; treat MongoDB servers as trusted infrastructure and validate their integrity; enable client-side crash and memory-corruption monitoring for applications using CSFLE/Queryable Encryption; and consider temporarily reducing reliance on encryption features in the highest-risk applications until a fix is available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
EUVD-2026-95162
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB