Skip to content

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

HighCVSS 8.6 EPSS 0.13%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
MongoDB C Driver >= 2.1.0, <= 2.1.2 No fix listed
debian/mongo-c-driver(Debian:12) < 1.23.1-1+deb12u3 1.23.1-1+deb12u3
debian/mongo-c-driver(Debian:12) = 1.23.1-1 No fix listed
debian/mongo-c-driver(Debian:12) = 1.23.1-1+deb12u1 No fix listed
debian/mongo-c-driver(Debian:12) = 1.23.1-1+deb12u2 No fix listed
debian/mongo-c-driver(Debian:13) < 1.30.4-1+deb13u2 1.30.4-1+deb13u2
debian/mongo-c-driver(Debian:13) = 1.30.4-1 No fix listed
debian/mongo-c-driver(Debian:13) = 1.30.4-1+deb13u1 No fix listed
debian/mongo-c-driver(Debian:14) < 2.2.0-1 2.2.0-1
debian/mongo-c-driver(Debian:14) = 1.30.4-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.0.2-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.1.0-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.1.1-1 No fix listed
debian/mongo-c-driver(Debian:14) = 2.1.2-1 No fix listed
ubuntu/mongo-c-driver(Ubuntu:22.04) All versions No fix listed
ubuntu/mongo-c-driver(Ubuntu:24.04) All versions No fix listed
MongoDB C Driver >= 2.1.0, < 2.1.2 2.1.2

References