CVE-2026-6691: CWE-120 Buffer Copy without Checking Size of Input in MongoDB Inc. MongoDB C Driver
CVE-2026-6691 is a high-severity vulnerability in the MongoDB C Driver version 2.1.0. It involves unsafe string copying in the Cyrus SASL integration during username canonicalization, leading to a heap buffer overflow. This flaw can be triggered by passing untrusted input in the username field of a MongoDB URI when using the GSSAPI authentication mechanism. No official patch or remediation guidance is currently available from the vendor. There are no known exploits in the wild at this time.
AI Analysis
Technical Summary
The MongoDB C Driver version 2.1.0 contains a buffer overflow vulnerability (CWE-120) in its Cyrus SASL integration component. During the process of canonicalizing usernames for GSSAPI authentication, the driver performs unsafe string copying without verifying the size of the input. This can result in a heap buffer overflow before any authentication or network communication occurs, potentially leading to memory corruption or application crashes. The vulnerability has a CVSS 4.0 score of 8.6, indicating high severity. No patch or official remediation has been published by MongoDB Inc. as of the publication date.
Potential Impact
Successful exploitation of this vulnerability could cause a heap buffer overflow in the MongoDB C Driver, potentially leading to application crashes or memory corruption. Because the overflow occurs before authentication or network traffic, it may allow an attacker to disrupt service or possibly execute arbitrary code depending on the context. However, no known exploits have been reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid passing untrusted input in the username field of MongoDB URIs when using the GSSAPI authentication mechanism. Monitoring vendor channels for updates is recommended.
CVE-2026-6691: CWE-120 Buffer Copy without Checking Size of Input in MongoDB Inc. MongoDB C Driver
Description
CVE-2026-6691 is a high-severity vulnerability in the MongoDB C Driver version 2.1.0. It involves unsafe string copying in the Cyrus SASL integration during username canonicalization, leading to a heap buffer overflow. This flaw can be triggered by passing untrusted input in the username field of a MongoDB URI when using the GSSAPI authentication mechanism. No official patch or remediation guidance is currently available from the vendor. There are no known exploits in the wild at this time.
CVSS v4.0
Score 8.6high
Affected software
pkg:github/mongodb/mongo-c-driverRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The MongoDB C Driver version 2.1.0 contains a buffer overflow vulnerability (CWE-120) in its Cyrus SASL integration component. During the process of canonicalizing usernames for GSSAPI authentication, the driver performs unsafe string copying without verifying the size of the input. This can result in a heap buffer overflow before any authentication or network communication occurs, potentially leading to memory corruption or application crashes. The vulnerability has a CVSS 4.0 score of 8.6, indicating high severity. No patch or official remediation has been published by MongoDB Inc. as of the publication date.
Potential Impact
Successful exploitation of this vulnerability could cause a heap buffer overflow in the MongoDB C Driver, potentially leading to application crashes or memory corruption. Because the overflow occurs before authentication or network traffic, it may allow an attacker to disrupt service or possibly execute arbitrary code depending on the context. However, no known exploits have been reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid passing untrusted input in the username field of MongoDB URIs when using the GSSAPI authentication mechanism. Monitoring vendor channels for updates is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-04-20T16:17:41.724Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fb5c96cbff5d861000f724
Added to database: 05/06/2026, 15:21:58 UTC
Last enriched: 05/14/2026, 03:52:30 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 380
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.