CVE-2026-6691

MongoDB C Driver Cyrus SASL Canonicalization Buffer Overflow

State
Published
Severity
8.6 High
Published
May 6, 2026
Updated
May 7, 2026
Reserved
Apr 20, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.08.6 HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:Nmongodb
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:Hmongodb

Weaknesses

  • CWE-120 Buffer Copy without Checking Size of Input

Affected Products

ProductVersions
MongoDB C DriverMongoDB Inc.
  • 2.1.0 through 2.1.2Affected

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.