CVE-2026-6691

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.
References
Link Resource
https://jira.mongodb.org/browse/CDRIVER-6134 Patch Vendor Advisory Issue Tracking
Configurations

Configuration 1 (hide)

cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*

History

18 Jun 2026, 17:18

Type Values Removed Values Added
CPE cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*
References () https://jira.mongodb.org/browse/CDRIVER-6134 - () https://jira.mongodb.org/browse/CDRIVER-6134 - Patch, Vendor Advisory, Issue Tracking
First Time Mongodb c Driver
Mongodb
CWE CWE-787

06 May 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-06 16:16

Updated : 2026-06-18 17:18


NVD link : CVE-2026-6691

Mitre link : CVE-2026-6691

CVE.ORG link : CVE-2026-6691


JSON object : View

Products Affected

mongodb

  • c_driver
CWE
CWE-120

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

CWE-787

Out-of-bounds Write