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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MongoDB | MongoDB C Driver | 2.1.0 – ≤ 2.1.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mongo-c-driver | 2.2.0-1 | — |
| Debian 13 | mongo-c-driver | 1.30.4-1+deb13u2 | — |
| Debian 12 | mongo-c-driver | 1.23.1-1+deb12u3 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | mongo-c-driver | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | mongo-c-driver | No fix yet | — |
| Ubuntu Pro 22.04 LTS | mongo-c-driver | No fix yet | — |
| Ubuntu Pro 20.04 LTS | mongo-c-driver | No fix yet | — |
Advisories 1
- WID-SEC-2026-1386 MongoDB: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · May 6, 2026