7.8High

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

MongoDB Inc. MongoDB C Driver Published: (6 months ago)

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.

Weakness (CWE): CWE-120CWE-787

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
mongodb c driver 2.1.0 – < 2.1.2
MongoDB Inc. MongoDB C Driver 2.1.0 – ≤ 2.1.2

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:* ≥ 2.1.0 < 2.1.2