CVE-2026-6691
Received Received - Intake
Heap Buffer Overflow in MongoDB C Driver with Cyrus SASL

Publication date: 2026-05-06

Last updated on: 2026-05-06

Assigner: MongoDB, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-06
Last Modified
2026-05-06
Generated
2026-05-07
AI Q&A
2026-05-06
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
mongodb mongodb_c_driver *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-120 The product 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.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The vulnerability exists in the MongoDB C Driver's Cyrus SASL integration, where unsafe string copying occurs during the process of username canonicalization. This unsafe operation can lead to a heap buffer overflow before any authentication or network traffic takes place. The issue can be triggered by providing untrusted input in the username field of a MongoDB URI when using the authMechanism=GSSAPI.


How can this vulnerability impact me? :

This vulnerability can lead to a heap buffer overflow, which may allow an attacker to execute arbitrary code or cause a denial of service. Since the overflow occurs before authentication or network traffic, it could be exploited remotely by passing malicious input in the username field, potentially compromising the security and stability of the affected system.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart