CVE-2026-126792
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.
Impact
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.
An attacker can exploit this with local access to the system, with an administrator account, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data or systems being changed, high risk of outages.
Affected products · MongoDB
| Product | Affected versions |
|---|---|
| Libmongocrypt Driver | from 1.1.0 through 1.21.2 Version 1.1.0 ≤1.21.2 |