CVE-2024-6381: mongodb inc libbson Integer Overflow to Buffer Overflow
CVSS: 5.3v3.1MediumModified
AliasesUBUNTU-CVE-2024-6381DEBIAN-CVE-2024-6381
Published 02-07-2024Last modified 03-11-2025
Vulnerability summary
CVE-2024-6381 is a medium (CVSS 5.3) Integer Overflow to Buffer Overflow vulnerability in mongodb inc libbson. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 31.8% of scored vulnerabilities.
CVSS score
5.3/10
010
Medium · v3.1 (NVD)EPSS score
0.39%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 3 · Related 1Timeline
- 02-07-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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 metrics
4 scores · 4 sources · 1 versionMedium 5.3Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NSources4 sources · 4.0–5.3
- CVE.orgCNA4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
32%
Versus all other CVEs
30-day change
0.00 pp
From 0.39% on 19-09-2026
19-09-202619-10-2026
EPSS score0.39%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian2 products
- libbson-xs-perl< 0.8.4-2+deb12u1
- mongo-c-driver< 1.23.1-1+deb12u1 | < 1.26.2-1
Ubuntu2 products
- libbsonAll versions (No fix recorded)
- mongo-c-driver< 1.16.1-1ubuntu0.1~esm1 | < 1.21.0-1ubuntu0.1~esm1 | < 1.26.0-1.1ubuntu2+esm1
Mongodb1 product
- libbson< 1.26.2
Mongodb inc1 product
- libbson< 1.26.2
4 vendors · 6 products