CVE-2026-6691: MongoDB C Driver Cyrus SASL Canonicalization Buffer Overflow

Published May 6, 2026
·
Updated

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 Software

2 affected components
MongoDB MongoDB C driver
MongoDB C Driver Mongodb>=2.1.0<2.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Do not use 'authMechanism=GSSAPI' in MongoDB connection URIs that include untrusted or user-supplied usernames; remove or change the authMechanism in the URI or ensure the username is trusted before including it.

    MongoDB C Driver (Cyrus SASL integration) authMechanism = do not set to GSSAPI when username contains untrusted input
  2. Compensating control

    Validate or sanitize any external input before placing it in the username field of a MongoDB URI. Reject or canonicalize untrusted usernames prior to constructing connection strings when authMechanism=GSSAPI is used.

Event History

May 6, 2026
CVE Published
via MITRE·03:08 PM
Data Sourced
via MITRE·03:08 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-6691?

The severity of CVE-2026-6691 is classified as critical due to the potential for remote code execution via a heap buffer overflow.

2

How do I fix CVE-2026-6691?

To fix CVE-2026-6691, update the MongoDB C Driver to the latest patched version provided by MongoDB.

3

What are the potential risks of CVE-2026-6691?

Exploitation of CVE-2026-6691 could allow unauthorized access or malicious commands to be executed on the affected system.

4

Who is affected by CVE-2026-6691?

CVE-2026-6691 affects all installations using the MongoDB C Driver that integrate with Cyrus SASL.

5

Is there a workaround for CVE-2026-6691?

There are no known effective workarounds for CVE-2026-6691, and users are advised to apply the recommended updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203