# CVE-2026-126792: Heap overflow via oversized RSA signature in GCP KMS signing callback

- **Severity:** MEDIUM 5.6
- **CVSS:** 5.6 (v4.0, CNA) `CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Attack requirements: Present; Privileges required: High; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.14% (percentile 1, 2026-11-29)
- **CWE:** CWE-787
- **Published:** 2026-11-12T23:53:12.989Z
- **Modified:** 2026-11-17T17:18:00.670Z

## Who should check

- Anyone running MongoDB Libmongocrypt Driver \>= 1.1.0, \<= 1.21.2

## 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.

## Affected and fixed versions

- MongoDB Libmongocrypt Driver: \>= 1.1.0, \<= 1.21.2 (cvelist)

## Technologies

MongoDB

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-126792. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-126792.md
Affected: MongoDB Libmongocrypt Driver >= 1.1.0, <= 1.21.2
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for MongoDB Libmongocrypt Driver: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-126792 being exploited?

There is no confirmed exploitation: CVE-2026-126792 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-29).

### How serious is CVE-2026-126792?

Medium: CVSS 5.6 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-126792?

MongoDB Libmongocrypt Driver \>= 1.1.0, \<= 1.21.2.

### Is there a fix for CVE-2026-126792?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-126792?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://jira.mongodb.org/browse/MONGOCRYPT-975>
- other: <https://jira.mongodb.org/browse/PYTHON-5999>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-126792>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-126792> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-126792>
