CVE-2026-135223: Memory leak on duplicate fields in key vault documents in libmongocrypt
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using MongoDB libmongocrypt are exposed when they parse encryption key documents from a key storage collection or database endpoint that can return documents containing repeated fields. The impact is limited to memory growth in the calling application process.
What access does an attacker need to trigger the memory leak?
An attacker needs the ability to write malicious key documents to the key storage collection, or control a database endpoint that returns such documents to the application. No user interaction is required.
What is the operational impact if exploitation occurs?
Memory may be retained for each affected document parsed, causing the application's memory usage to grow over time. This can reduce the performance of the calling process.