CVE-2024-6381

published 2 Jul 2024 · updated 3 Nov 2025

MongoDB C Driver bson_strfreev may be susceptible to integer overflow

4.0MediumCVSS 4.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in libbson 1.26.2.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBlibbson<1.26.21.26.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in MongoDB, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-6381 severity on Zeptric[![CVE-2024-6381](https://zeptric.io/badge/cve/CVE-2024-6381.svg)](https://zeptric.io/cve/CVE-2024-6381)