What’s Vulnerable › Vulnerabilities

CVE-2024-6381: MongoDB C Driver bson_strfreev may be susceptible to integer overflow

Description

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 products

How to fix

Upgrade to a fixed version: MongoDB Inc libbson 1.26.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-6381 or the next vulnerability affects your stack