Medium severity · published Jul 3, 2024
CVE-2024-6383
MongoDB C Driver bson_string_append may be vulnerable to a buffer overflow
5.3
CVSS
0.6%
EPSS
No
On KEV
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
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 50% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
libbson · MongoDB Inc
before 1.27.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-6383
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-6383
jira.mongodb.org
https://jira.mongodb.org/browse/CDRIVER-5628
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html
security.netapp.com
https://security.netapp.com/advisory/ntap-20241004-0001/
More from libbson
8.1
CVE-2018-16790
_bson_iter_next_internal in bson-iter.c in libbson 1.12.0, as used in MongoDB mongo-c-driver and other products, has a heap-based buffer over-read via a crafted bson buffer
7.5
CVE-2025-0755
MongoDB C Driver bson library may be susceptible to buffer overflow
5.3
CVE-2024-6381
MongoDB C Driver bson_strfreev may be susceptible to integer overflow
