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
- Severity: Medium (CVSS 3.x base score 4.0)
- EPSS exploit prediction: 0% (31st percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-47488
- Weakness: CWE-680
- Affected product: Mongodb Libbson
- Published:
- Last modified:
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
- https://jira.mongodb.org/browse/CDRIVER-5622
- https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html
- https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html
Affected products (1)
- cpe:2.3:a:mongodb:libbson:*:*:*:*:*:*:*:*
More vulnerabilities in Mongodb Libbson
- CVE-2025-0755 — High (CVSS 8.4): The various bson_append functions in the MongoDB C driver library may be susceptible to buffer overflow when…
- CVE-2018-16790 — High (CVSS 8.1): _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…
All CVEs affecting Mongodb Libbson →
Other CWE-680 vulnerabilities
- CVE-2026-8376 — Critical (CVSS 9.8): Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed…
- CVE-2025-54952 — Critical (CVSS 9.8): An integer overflow vulnerability in the loading of ExecuTorch models can cause smaller-than-expected memory regions to…
- CVE-2024-33078 — Critical (CVSS 9.8): Tencent Libpag v4.3 is vulnerable to Buffer Overflow. A user can send a crafted image to trigger a overflow leading to…
- CVE-2025-53510 — High (CVSS 8.8): A memory corruption vulnerability exists in the PSD Image Decoding functionality of the SAIL Image Decoding Library…
- CVE-2025-52930 — High (CVSS 8.8): A memory corruption vulnerability exists in the BMPv3 RLE Decoding functionality of the SAIL Image Decoding Library…
- CVE-2025-52456 — High (CVSS 8.8): A memory corruption vulnerability exists in the WebP Image Decoding functionality of the SAIL Image Decoding Library…