CVE-2026-6691
EUVD-2026-2783806.05.2026, 16:16
The MongoDB C Driver's Cyrus SASL integration performs unsafe string copying during username canonicalization, enabling a heap buffer overflow before any authentication or network traffic. This may be triggered by passing untrusted input in the username of a MongoDB URI with authMechanism=GSSAPI.
Affected Products (NVD)
| Vendor | Product | Version |
|---|---|---|
| mongodb | c_driver | 2.1.0 ≤ 𝑥 < 2.1.2 |
𝑥
= Vulnerable software versions
Debian Releases
Common Weakness Enumeration
- CWE-120 - Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')The program copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.
- CWE-787 - Out-of-bounds WriteThe software writes data past the end, or before the beginning, of the intended buffer.