CVE-2026-88035

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

Published Sep 10, 2026 CVSS 4.0 · 5.7 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An oversized SASL username value can bypass a size check in the C Driver and be copied past the end of a small buffer, causing the application that uses the driver to crash. This vulnerability does not provide remote code execution or privilege escalation, but it can disrupt the service by terminating the application. The weakness is a classic integer overflow or signed/unsigned mismatch, identified as CWE-190.

Affected Systems

The MongoDB C Driver is affected. The issue arises only in builds that include the optional external SASL authentication backend and when a connection is configured to use that backend. No specific version numbers are supplied in the advisory.

Risk and Exploitability

The severity is a moderate CVSS score of 5.7. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker who can influence the driver's connection configuration on a system that hosts the driver; this may imply remote code supplied by an application that initializes the driver, or local compromise. The likelihood of exploitation is low to moderate because the vulnerable code path is conditional on the optional SASL backend being present and enabled, but any application using that feature must consider the risk of denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a release of the MongoDB C Driver that includes the fix for CDRIVER-6416.
  • Disabling or removing the optional external SASL authentication backend to eliminate the vulnerable code path.
  • Implement application-level validation to enforce an appropriate username length before passing it to the driver.

Generated by OpenCVE AI on September 10, 2026 at 23:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c Driver
Vendors & Products Mongodb
Mongodb c Driver
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Heap buffer overflow via wrapped size check during SASL username canonicalization in MongoDB C Driver
Weaknesses CWE-190
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 5.7, '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'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Sep 10, 2026, 6:29 PM
Reserved
Sep 9, 2026, 7:49 PM
Status
Analyzed
Published
Sep 10, 2026, 7:17 PM
Modified
Sep 16, 2026, 6:08 PM