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
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
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 4.0 Medium | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | mongodb |
Weaknesses
- CWE-680 Integer Overflow to Buffer Overflow
Affected Products
| Product | Versions |
|---|---|
libbsonMongoDB Inc |
|
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.