CVE-2024-6381

CVE-2024-6381 is a medium-severity vulnerability in Mongodb Libbson with a CVSS 3.x base score of 4.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-680.

Key facts

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

Frequently asked questions

What is 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. This may result in memory corruption. This issue affected libbson versions prior to 1.26.2
How severe is CVE-2024-6381?
CVE-2024-6381 has a CVSS 3.x base score of 4.0, rated medium severity. It is exploitable over local access with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity low, and availability none.
Is CVE-2024-6381 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (31st percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-6381?
CVE-2024-6381 affects Mongodb Libbson. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-6381?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-6381 have an EU (EUVD) identifier?
Yes. CVE-2024-6381 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-47488.
When was CVE-2024-6381 published?
CVE-2024-6381 was published on 2024-07-02 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Mongodb Libbson

All CVEs affecting Mongodb Libbson →

Other CWE-680 vulnerabilities

Browse all CWE-680 vulnerabilities →