CVE-2026-88035

Heap buffer overflow via wrapped size check during SASL username canonicalization in MongoDB C Driver

State
Published
Severity
5.7 Medium
Published
Sep 10, 2026
Updated
Sep 10, 2026
Reserved
Sep 9, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.05.7 MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:Nmongodb
3.14.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:Hmongodb

Weaknesses

  • CWE-190 Integer Overflow or Wraparound

Affected Products

ProductVersions
C DriverMongoDB
  • 2.2.0 to before 2.5.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.