CVE-2026-135223 in Libmongocrypt Driverinfo

Summary

by MITRE • 11/25/2026

An improper handling of repeated fields in encryption key documents in the MongoDB encryption support library may allow memory to be retained without release. A party able to write to the key storage collection, or a database endpoint returning such a document, may cause the memory use of the calling application process to grow for each document parsed, which may reduce performance of that process.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in the MongoDB encryption support library stems from an improper handling mechanism when processing repeated fields within encryption key documents. This flaw specifically affects the parsing logic used by applications relying on this library for data-at-rest or field-level encryption operations. When a document containing multiple instances of specific encrypted fields is processed, the internal memory management routines fail to correctly deallocate resources associated with those parsed elements. Instead of releasing the allocated memory after processing each instance, the application retains references to these objects in memory. This behavior creates a classic scenario for resource exhaustion within the context of cryptographic key handling and document parsing operations.

From a technical perspective, this issue represents an improper allocation or release of memory resources during input validation and data structure manipulation. The root cause lies in the failure to properly clean up internal state variables or object references after they have served their purpose during the decryption or key retrieval process. As the application iterates through documents with repeated fields, each iteration adds new allocations that are never freed. This leads to a steady accumulation of memory usage within the calling application process. The flaw is particularly insidious because it does not cause an immediate crash but rather manifests as a gradual degradation in system performance over time, making it difficult to detect without monitoring tools specifically tracking memory consumption trends during high-volume encryption operations.

The operational impact of this vulnerability is significant for any production environment that processes large volumes of encrypted data or frequently accesses key storage collections containing documents with repeated fields. An attacker who has the ability to write to the key storage collection, such as through a compromised application account or an insider threat, can exploit this flaw by injecting specially crafted documents designed to trigger the memory retention bug. By repeatedly submitting these malformed documents, the attacker can cause the memory footprint of the database driver or application server to grow continuously. This uncontrolled growth eventually leads to performance degradation, increased latency for legitimate requests, and potentially a complete denial of service if the system runs out of available RAM and begins swapping heavily or crashes due to an out-of-memory condition.

This vulnerability aligns with CWE-401, which describes improper release of memory or resources before removing all references, leading to resource leaks. In terms of attack vectors, it falls under CWE-787, as the exploitation relies on writing malicious data into a trusted storage location that is subsequently parsed by vulnerable code. From an adversarial tactics perspective, this aligns with ATT&CK technique T1496, Resource Hijacking, where attackers consume system resources to degrade performance or cause denial of service rather than directly stealing data. The attack requires local access to the key store or database endpoint, limiting its scope compared to remote code execution vulnerabilities but making it a potent tool for disruption within authenticated environments.

Mitigation strategies should focus on both immediate patching and long-term architectural improvements. Organizations using affected versions of the MongoDB encryption support library must apply the vendor-provided patches that correct the memory management logic in the parsing routines. Until patches are applied, administrators can mitigate risk by restricting write access to key storage collections to only highly privileged service accounts with strict auditing enabled. Additionally, implementing monitoring for abnormal spikes in application process memory usage during peak encryption activity can help detect exploitation attempts early. Developers should also consider reviewing their use of repeated fields in encrypted documents and minimizing unnecessary duplication where possible to reduce the attack surface. Regular security reviews of cryptographic integration code are recommended to ensure that resource cleanup procedures are robust against malformed or malicious inputs, ensuring resilience against similar memory management flaws in future updates.

Responsible

Mongodb

Reservation

11/23/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00378

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!