CVE-2024-6381 MEDIUM

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

Vendor Mongodb Inc
Product libbson
Weakness CWE-680
Published July 2, 2024
Last update November 3, 2025

CVSS base score

4.0/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity Low

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What the vulnerability does

01Description

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

Key dates

02Disclosure timeline

July 2, 2024 CVE published
November 3, 2025 Record updated