Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-106429 Overview
CVE-2026-106429 is an integer underflow vulnerability in the Key Management Service (KMS) endpoint-parsing logic of MongoDB libmongocrypt. The flaw causes an allocation failure that terminates the application process. Triggering conditions include an authenticated user modifying a key document in the key vault collection, or an application accepting a KMS endpoint containing a colon after its path or query during key creation. The issue does not read or write memory outside allocated bounds, limiting impact to availability. The weakness is classified under CWE-191: Integer Underflow (Wrap or Wraparound).
Critical Impact
An authenticated attacker can crash applications relying on libmongocrypt for Client-Side Field Level Encryption, causing a denial of service against services that process KMS endpoints or key vault documents.
Affected Products
- MongoDB libmongocrypt (KMS endpoint-parsing component)
- MongoDB drivers and applications using Client-Side Field Level Encryption (CSFLE) backed by libmongocrypt
- Services that accept user-supplied KMS endpoints during key creation workflows
Discovery Timeline
- 2026-10-08 - CVE-2026-106429 published to the National Vulnerability Database (NVD)
- 2026-10-08 - Last updated in NVD database
Technical Details for CVE-2026-106429
Vulnerability Analysis
The defect resides in the KMS endpoint-parsing routine within libmongocrypt, the library that implements MongoDB Client-Side Field Level Encryption. When the parser processes a malformed endpoint string, an arithmetic operation on an unsigned length value underflows and wraps to a very large value. The subsequent memory allocation request fails, and the process aborts.
The condition is reachable in two documented ways. First, an authenticated user with write access to the key vault collection can modify a stored key document so that its serialized KMS endpoint triggers the underflow during decryption or key reuse. Second, an application that forwards a user-supplied endpoint containing a colon after the path or query component into a key-creation call will fault at parse time. The impact is confined to availability; the issue does not grant memory read or write access outside allocated regions.
Root Cause
The parser computes a buffer length by subtracting an offset derived from the location of a colon delimiter. When the colon appears after the path or query, the computed offset exceeds the length of the remaining input, and the unsigned subtraction underflows. The allocator then rejects the resulting size, and the process terminates on allocation failure.
Attack Vector
Exploitation requires network access and authenticated privileges on the targeted MongoDB deployment or application endpoint. An attacker modifies a key vault document or supplies a crafted KMS endpoint string during key creation. No user interaction is required, and attack complexity is low. The vulnerability is tracked under MongoDB Issue MONGOCRYPT-986.
No verified public exploit code or proof-of-concept is available at the time of publication. The vulnerability mechanism is documented in the MongoDB issue tracker linked above.
Detection Methods for CVE-2026-106429
Indicators of Compromise
- Repeated unexpected termination of application processes that use libmongocrypt, especially around CSFLE operations
- Key vault documents containing KMS endpoint fields with a colon positioned after the path or query component
- Application logs showing allocation failures or aborts during KMS endpoint parsing or key creation
Detection Strategies
- Audit modifications to the key vault collection and alert on changes to masterKey.endpoint or equivalent KMS endpoint fields
- Inspect API traffic for key-creation requests that include endpoint strings with colons after the path or query delimiter
- Correlate application crash events with recent writes to the key vault collection or recent key-creation calls
Monitoring Recommendations
- Enable MongoDB auditing for operations against the key vault database and collection
- Capture process-exit telemetry from services that embed libmongocrypt, including exit codes consistent with abort or allocation failure
- Monitor service availability metrics for CSFLE-dependent workloads to detect repeated crash-restart cycles
How to Mitigate CVE-2026-106429
Immediate Actions Required
- Upgrade libmongocrypt and dependent MongoDB drivers to the fixed release identified in MONGOCRYPT-986
- Restrict write access to the key vault collection to a minimal set of trusted service accounts
- Validate and reject application-supplied KMS endpoint strings that contain a colon after the path or query component
Patch Information
MongoDB tracks the fix under issue MONGOCRYPT-986. Review the issue for the specific fixed version of libmongocrypt and update all drivers, services, and container images that bundle the library. Rebuild and redeploy applications that statically link libmongocrypt.
Workarounds
- Enforce server-side input validation on KMS endpoint strings before passing them to libmongocrypt key-creation APIs
- Use role-based access control to prevent untrusted principals from writing to the key vault collection
- Deploy service-level process supervision and rate limiting to contain the impact of crash-and-restart denial of service attempts
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

