Vulnerability 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
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Mongodb | Libbson | < 1.26.2 |
Related Weaknesses (CWE)
References
- https://jira.mongodb.org/browse/CDRIVER-5622Issue TrackingVendor Advisory
- https://jira.mongodb.org/browse/CDRIVER-5622Issue TrackingVendor Advisory
- https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html
- https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html
FAQ
What is CVE-2024-6381?
CVE-2024-6381 is a vulnerability with a CVSS score of 4.0 (MEDIUM). 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 corrupti...
How severe is CVE-2024-6381?
CVE-2024-6381 has been rated MEDIUM with a CVSS base score of 4.0/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-6381?
Check the references section above for vendor advisories and patch information. Affected products include: Mongodb Libbson.