Heap overflow via oversized RSA signature in GCP KMS signing callback
- State
- Published
- Severity
- 5.6 Medium
- Published
- Nov 12, 2026
- Updated
- Nov 17, 2026
- Reserved
- Nov 11, 2026
Description
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.
| Product | Versions |
|---|---|
| Libmongocrypt Driver MongoDB | 1.1.0 through 1.21.2 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.6 Medium | mongodb | |
| 3.1 | 4.7 Medium | mongodb |
Weaknesses
- CWE-787 Out-of-bounds Write
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.