Skip to main content

MongoDB libmongocrypt EUVDEUVD-2026-95162

| CVE-2026-106433 HIGH
Access of Resource Using Incompatible Type (Type Confusion) (CWE-843)
2026-10-08 mongodb
8.7
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain key-vault write access or control returning server
  2. Delivery
    Craft key document with duplicate masterKey fields
  3. Exploit
    Client processes and cleans up key document
  4. Execution
    Type confusion triggers invalid free / bad memory access
  5. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

libmongocrypt 1.1.0 <1.20.5

Affected Packages

euvd libmongocrypt fix: 1.20.5

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

Vendor (mongodb) PRIMARY 8.7 HIGH
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
vuln.today AI 7.6 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 08, 2026 - 20:03 EUVD
CVE Published
Oct 08, 2026 - 18:55 cve.org
HIGH 8.7

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
encryption library bundled in MongoDB drivers, used only when CSFLE/Queryable Encryption is enabled
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

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

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy