Integer Underflow (Wrap or Wraparound) Affecting mongo-c-driver package, versions [2.2.0,2.5.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (32nd 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-20074896
  • published24 Sept 2026
  • disclosed17 Sept 2026
  • creditUnknown

Introduced: 17 Sep 2026

NewCVE-2026-93395  (opens in a new tab)
CWE-191  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Integer Underflow (Wrap or Wraparound) via the bson_new_from_buffer function. An attacker can cause a crash by supplying crafted BSON data with a zero-length prefix, leading to a heap out-of-bounds read when the function fails to validate the minimum document size.

References

CVSS Base Scores

version 4.0
version 3.1