Heap-based buffer overflow in MongoDB driver for C - CVE-2026-6691
Published: August 18, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to a heap-based buffer overflow in the MongoDB C Driver Cyrus SASL integration when canonicalizing the username from a MongoDB URI with authMechanism=GSSAPI. A remote attacker can supply a specially crafted username value to execute arbitrary code.
User interaction is required to pass untrusted input in the username of a MongoDB URI.