CVE-2024-6381

MongoDB C Driver bson_strfreev may be susceptible to integer overflow

State
Published
Severity
4.0 Medium
Published
Jul 2, 2024
Updated
Nov 3, 2025
Reserved
Jun 27, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.14.0 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:Nmongodb

Weaknesses

  • CWE-680 Integer Overflow to Buffer Overflow

Affected Products

ProductVersions
libbsonMongoDB Inc
  • before 1.26.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.