CVE-2026-88035
CVE-2026-88035 · Heap buffer overflow via wrapped size check during SASL username canonicalization in MongoDB C Driver
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 5.7 · Medium · EPSS 0.1% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
c driver
- Versions
- ≥ 2.2.0, < 2.5.3: Affected (semver)
Update to 2.5.3
mongo-c-driver Debian:12
- Versions
- 1.23.1-1
- 1.23.1-1+deb12u1
- 1.23.1-1+deb12u2
- 1.23.1-1+deb12u3
- 1.24.1-1
- 1.24.2-1
- 1.24.3-1
- 1.24.4-1
- 1.25.0-1
- 1.25.1-1
- 1.25.2-1
- 1.25.4-1
- 1.25.4-1.1~exp1
- 1.26.0-1
- 1.26.0-1.1
- 1.26.0-1.1~exp1
- 1.26.1-1
- 1.26.2-1
- 1.27.0-1
- 1.27.1-1
- 1.27.2-1
- 1.27.3-1
- 1.27.4-1
- 1.27.5-1
- 1.27.6-1
- 1.28.0-1
- 1.28.1-1
- 1.29.0-1
- 1.29.1-1
- 1.29.2-1
- 1.30.0-1
- 1.30.1-1
- 1.30.2-1
- 1.30.3-1
- 1.30.4-1
- 2.0.2-1
- 2.1.0-1
- 2.1.1-1
- 2.1.2-1
- 2.2.0-1
- 2.2.1-1
- 2.2.2-1
- 2.2.3-1
- 2.2.4-1
- 2.3.0-1
- 2.3.1-1
- 2.3.2-1
- 2.3.3-1
- 2.4.0-1
- 2.5.0-1
- 2.5.1-1
- 2.5.2-1
- 2.5.3-1
- 2.5.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mongo-c-driver Debian:13
- Versions
- 1.30.4-1
- 1.30.4-1+deb13u1
- 1.30.4-1+deb13u2
- 1.30.4-1+deb13u3
- 2.0.2-1
- 2.1.0-1
- 2.1.1-1
- 2.1.2-1
- 2.2.0-1
- 2.2.1-1
- 2.2.2-1
- 2.2.3-1
- 2.2.4-1
- 2.3.0-1
- 2.3.1-1
- 2.3.2-1
- 2.3.3-1
- 2.4.0-1
- 2.5.0-1
- 2.5.1-1
- 2.5.2-1
- 2.5.3-1
- 2.5.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mongo-c-driver Debian:14
- Versions
- 1.30.4-1
- 2.0.2-1
- 2.1.0-1
- 2.1.1-1
- 2.1.2-1
- 2.2.0-1
- 2.2.1-1
- 2.2.2-1
- 2.2.3-1
- 2.2.4-1
- 2.3.0-1
- 2.3.1-1
- 2.3.2-1
- 2.3.3-1
- 2.4.0-1
- 2.5.0-1
- 2.5.1-1
- 2.5.2-1
- Affected ranges
- ECOSYSTEM: < 2.5.3-1
Update to 2.5.3-1
mongodb Ubuntu:Pro:14.04:LTS
- Versions
- 1:2.4.6-0ubuntu5
- 1:2.4.6-0ubuntu6
- 1:2.4.8-1ubuntu1
- 1:2.4.8-2
- 1:2.4.9-1
- 1:2.4.9-1ubuntu1
- 1:2.4.9-1ubuntu2
- 1:2.4.9-1ubuntu2+esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mongodb Ubuntu:Pro:16.04:LTS
- Versions
- 1:2.6.10-0ubuntu1
- 1:2.6.10-0ubuntu1+esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mongodb Ubuntu:Pro:18.04:LTS
- Versions
- 1:3.4.7-1
- 1:3.4.7-1ubuntu1
- 1:3.4.7-1ubuntu2
- 1:3.4.7-1ubuntu4
- 1:3.4.14-3ubuntu1
- 1:3.4.14-3ubuntu2
- 1:3.6.3-0ubuntu1
- 1:3.6.3-0ubuntu1.1
- 1:3.6.3-0ubuntu1.3
- 1:3.6.3-0ubuntu1.4
- 1:3.6.3-0ubuntu1.4+esm1
- 1:3.6.3-0ubuntu1.4+esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mongodb Ubuntu:Pro:20.04:LTS
- Versions
- 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2
- 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5
- 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.2
- 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3
- 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published