What’s Vulnerable › Vulnerabilities
CVE-2024-6381: MongoDB C Driver bson_strfreev may be susceptible to integer overflow
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-02 · updated 2026-06-17
- Weakness: CWE-680
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
- MongoDB Inc libbson: before 1.26.2 — fixed in 1.26.2
How to fix
Upgrade to a fixed version: MongoDB Inc libbson 1.26.2. Check the vendor advisory for mitigations.
References
- https://jira.mongodb.org/browse/CDRIVER-5622
- https://jira.mongodb.org/browse/CDRIVER-5622
- https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html
- https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html
Get alerted when CVE-2024-6381 or the next vulnerability affects your stack