Heap buffer overflow via wrapped size check during SASL username canonicalization
Medium5.7CVE-2026-88035 · Published Sep 11, 2026
### Impact A size check in the client-side authentication path of the MongoDB C Driver can wrap around, so an unusually large user-name value is accepted and copied past the end of a small buffer. A party able to set the driver's connection settings may cause the application that embeds the driver to terminate unexpectedly. Reaching this code requires a build in which the optional external SASL authentication backend is present and a connection configured to use it. ### Patches Fixed in 2.5.3. ### Workarounds Validate username. ### References https://jira.mongodb.org/browse/CDRIVER-6416
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| MongoDB C Driver Product | >= 2.2.0, < 2.5.3 | 2.5.3 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Severity from
- GitHub (reviewed advisory)
More MongoDB advisories
All MongoDB| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Sep 11 | MongoDB Server: race condition | High7.7 | 8.3.11+2 more |
| Sep 11 | ### Impact Improper neutralization of special elements in data query logic in... | High7.1 | 5.11.0 |
| Sep 11 | ### Impact Improper neutralization of special elements in data query logic in... | High7.1 | 5.11.0 |
| Sep 11 | ### Impact Improper neutralization of special elements in data query logic in... | High8.4 | 5.11.0 |
| Sep 11 | GridFS data disclosure and deletion via query-operator injection in file IDs | Medium6.1 | 1.21.5+1 more |
| Sep 11 | GridFS data disclosure and deletion via query-operator injection in file IDs | Medium6.1 | 4.5.3 |