What’s Vulnerable › Vulnerabilities
CVE-2024-6383: MongoDB C Driver bson_string_append may be vulnerable to a buffer overflow
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-03 · updated 2026-06-17
- Weakness: CWE-122
Description
The bson_string_append function in MongoDB C Driver may be vulnerable to a buffer overflow where the function might attempt to allocate too small of buffer and may lead to memory corruption of neighbouring heap memory. This issue affects libbson versions prior to 1.27.1
Affected products
- MongoDB Inc libbson: before 1.27.1 — fixed in 1.27.1
How to fix
Upgrade to a fixed version: MongoDB Inc libbson 1.27.1. Check the vendor advisory for mitigations.
References
- https://jira.mongodb.org/browse/CDRIVER-5628
- https://jira.mongodb.org/browse/CDRIVER-5628
- https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html
- https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html
- https://security.netapp.com/advisory/ntap-20241004-0001/
Get alerted when CVE-2024-6383 or the next vulnerability affects your stack