Buffer Overflow Affecting mongo-c-driver package, versions [,2.2.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-MONGOCDRIVER-16438298
  • published7 May 2026
  • disclosed6 May 2026
  • creditUnknown

Introduced: 6 May 2026

CVE-2026-6691  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade mongo-c-driver to version 2.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow via unsafe string copying in the canonicalization process. An attacker can execute arbitrary code or cause a denial of service by supplying a specially crafted username in the MongoDB URI with authMechanism=GSSAPI before authentication or network traffic occurs.

CVSS Base Scores

version 4.0
version 3.1