CVE-2026-88035 PUBLISHED

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

Assigner: mongodb
Reserved: 09.09.2026 Published: 10.09.2026 Updated: 10.09.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 5.7

Product Status

Vendor MongoDB
Product C Driver
Versions Default: unaffected
  • affected from 2.2.0 to 2.5.3 (excl.)

References

Problem Types

  • CWE-190: Integer Overflow or Wraparound CWE