Heap-based Buffer Overflow Affecting mongodb/mongo-c-driver package, versions [,1.27.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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-UNMANAGED-MONGODBMONGOCDRIVER-9572896
  • published30 Mar 2025
  • disclosed19 Mar 2025
  • creditUnknown

Introduced: 19 Mar 2025

NewCVE-2025-0755  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade mongodb/mongo-c-driver to version 1.27.6 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the bson_add() and bson_append() functions in libbson. An attacker can cause a seg fault and crash by processing a very large BSON document.

CVSS Base Scores

version 4.0
version 3.1