5.3

CVE-2024-6381: MongoDB C Driver bson_strfreev may be susceptible to integer overflow

Modified
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 35.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.1 (NVD)
EPSS score
0.39%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 3 · Related 1

Timeline

  1. 02-07-2024
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last 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 version

EPSS trend

Probability

0.39%

Chance of exploitation in the next 30 days

Percentile

35%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.39% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu3 products
  • libbsonAll versions (No fix recorded)
  • libbson-xs-perlAll 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
Debian2 products
  • libbson-xs-perl< 0.8.4-2+deb12u1
  • mongo-c-driver< 1.23.1-1+deb12u1 | < 1.26.2-1
Mongodb1 product
Mongodb inc1 product

4 vendors · 7 products

References

7 links