CVE-2024-6381 Affecting mongo-c-driver package, versions <1.16.1-1ubuntu0.1~esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.06% (19th 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-UBUNTU2004-MONGOCDRIVER-7417692
  • published26 Jun 2025
  • disclosed2 Jul 2024

Introduced: 2 Jul 2024

CVE-2024-6381  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 mongo-c-driver to version 1.16.1-1ubuntu0.1~esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mongo-c-driver package and not the mongo-c-driver package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the function will try to free memory at a negative offset. This may result in memory corruption. This issue affected libbson versions prior to 1.26.2