Medium severity · published Jul 2, 2024
CVE-2024-6381
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
5.3
CVSS
0.4%
EPSS
No
On KEV
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 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.4% · higher than 33% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
Libbson · Mongodb
before 1.26.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-6381
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-6381
Issue Tracking
https://jira.mongodb.org/browse/CDRIVER-5622
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
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
The various bson_append functions in the MongoDB C driver library may be susceptible to buffer overflow when performing operations that could result in a final BSON document which…
