Skip to main content

libmongocrypt CVE-2026-126792

| EUVDEUVD-2026-124805 MEDIUM
Out-of-bounds Write (CWE-787)
2026-11-13 cna@mongodb.com GHSA-26gf-ccr3-ppg9
5.7
CVSS 4.0 · Vendor: mongodb
Temporal: 4.7
View

Attack ChainAIDerived

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

  1. Access
    Gain control of in-process KMS provider config
  2. Delivery
    Supply oversized cryptographic key via custom callback
  3. Exploit
    Trigger out-of-bounds heap write in request builder
  4. Execution
    Corrupt heap memory
  5. Impact
    Crash client process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the library (libmongocrypt, per MONGOCRYPT-975) be embedded by a caller that supplies its own cryptographic callback implementation for key management, and that the attacker control the embedding application's in-process key-management provider configuration - a high-privilege position (PR:H). The specific trigger is an oversized cryptographic key that exceeds a fixed-size output buffer whose size is assumed but never validated. Limiting factors that reduce realistic risk: the vector is local (AV:L), complexity is high with a present attack requirement (AC:H/AT:P), the vulnerable path is a non-default embedding mode (custom crypto provider rather than built-in KMS handling), and the only demonstrated impact is process termination (DoS), not confidentiality loss or confirmed code execution.

Impact

This is a medium-severity issue (CVSS 4.0 base 5.7) whose signals are internally consistent and point to a low-to-moderate real-world priority rather than an urgent threat. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:H/UI:N) describes a local, high-complexity flaw gated behind a present attack requirement and a high-privilege position - the attacker must already control the embedding application's in-process key-management provider configuration, which is effectively trust already placed in that code path. Impact is limited: VC:N (no confidentiality loss), VI:L (limited integrity), VA:H (availability loss), matching the description's 'demonstrated impact is memory corruption resulting in abnormal termination of the client process' - i.e. a denial-of-service against the local process, not demonstrated remote code execution. No CISA KEV listing, no EPSS score, and no public exploit were provided; the vuln.today decision label is 'this_month', not act_now or emergency, which aligns with the constrained vector. The one tension worth flagging: CWE-787 (out-of-bounds heap write) is a class that can sometimes be escalated beyond a crash, but the available evidence demonstrates only process termination, and the trigger mechanism beyond 'unvalidated key-size assumption' is not elaborated - do not assume code execution. Net: a real defect worth patching on a normal cycle for anyone embedding the library with a custom crypto/KMS callback, but not a drop-everything priority given the high-privilege local precondition.

Exploit ScenarioDerived

An actor who can influence the embedding application's in-process key-management provider configuration (a high-privilege position, PR:H) supplies or configures a custom cryptographic callback that returns a key larger than the library's fixed-size output buffer assumes. When the key-management request-building component writes that oversized data, it overflows the heap buffer (CWE-787), corrupting memory and terminating the client process. Exploitation is local and high-complexity (AV:L/AC:H/AT:P), and no public exploit code was identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 13, 2026

An out-of-bounds heap write exists in the key-management request-building component of libmongocrypt, MongoDB's client-side field-level encryption library, where a fixed-size output buffer is sized on a cryptographic key length that is assumed but never validated. Reaching the flaw requires the library to be embedded by a caller that supplies its own cryptographic callback implementation for key management and requires an attacker to control that application's in-process key-management provider configuration, a high-privilege position; the demonstrated result is memory corruption leading to abnormal termination of the client process, not disclosure of data. No public exploit code has been identified at time of analysis, no CISA KEV entry applies, and the vendor-assigned CVSS 4.0 base score is 5.7 with the vector constrained by local access, high attack complexity, a present attack requirement and high privileges.

RemediationAI

No vendor-released patch with an exact fixed version is identified in the available data, so remediation status must be confirmed from the MongoDB advisories at https://jira.mongodb.org/browse/MONGOCRYPT-975 and https://jira.mongodb.org/browse/PYTHON-5999, and the fixed libmongocrypt release (and corresponding driver release for PYTHON-5999) should be applied once those tickets specify it. The most direct compensating control is to avoid the vulnerable embedding mode entirely: run with the library's built-in KMS handling and do not register a custom cryptographic callback implementation for key-management requests, which removes the affected request-building path at the cost of losing whatever custom key-provider behavior the callback supplied. Where a custom provider cannot be removed, restrict control over the application's in-process key-management provider configuration to fully trusted operators, since an attacker must already hold that high-privilege position to reach the flaw; this reduces exposure but does not fix the missing buffer-length validation. Any residual risk is bounded by the demonstrated impact, which is process termination rather than data disclosure.

Affected VersionsENISA

Libmongocrypt Driver 1.1.0 ≤1.21.2

Affected Packages

euvd libmongocrypt_driver no fix

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

The defect is a classic CWE-787 out-of-bounds write in the code path that builds key-management requests: a buffer of fixed size is used on the assumption that the cryptographic key material passed through it will never exceed a particular length, and that assumption is never checked. The failure surfaces only in a non-default embedding mode of libmongocrypt, in which the embedding application replaces the library's built-in KMS handling with its own cryptographic callback implementation and supplies key material of its own choosing; oversized key data is then copied past the end of the buffer and corrupts adjacent heap memory. Because the buffer length is hard-coded rather than derived from the callback's actual key size, there is no length check at the boundary to stop the write. The vector components reflect the deployment reality rather than the memory-safety class alone: local access (AV:L), high complexity with a present attack requirement (AC:H/AT:P), high privileges (PR:H) needed to influence in-process provider configuration, and impact limited to low integrity and high availability with no confidentiality effect. The root cause is tracked in the MongoDB Jira issue MONGOCRYPT-975, with a related driver-side reference in PYTHON-5999.

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 5.7 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
CIRCL (temporal) 4.7 MEDIUM
vuln.today AI 4.7 MEDIUM

Requires control of the in-process KMS provider config (PR:H) and an unvalidated key-size precondition (AC:H), local vector (AV:L); impact is a crash (A:H) with limited integrity (I:L) and no confidentiality (C:N).

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

DescriptionCVE.org

A memory-safety flaw in the key-management request-building component of the library can lead to an out-of-bounds write on the heap. A fixed-size output buffer is used under an assumption about cryptographic key size that is never validated, so when the library is embedded by a caller that supplies its own cryptographic callback implementation, data larger than the buffer can be written past its end. Exploitation requires the ability to control the embedding application's in-process key-management provider configuration, a high-privilege position. The demonstrated impact is memory corruption resulting in abnormal termination of the client process.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
MongoDB encryption library embedded in drivers, but only when using custom crypto/KMS callbacks
Social Media
1
Sightings
Data Quality
5 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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.

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-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

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-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

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

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