🛡️ CVE-2024-6381 — libbson

🟡 CVSS 4.0 — Medium ✅ No Known Exploit CWE-680 NVD
4.0
CVSS Score
0 Low4 Medium7 High9 Critical10

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

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity low, availability none.

Weakness class

CVE-2024-6381 is classified as CWE-680: Integer Overflow to Buffer Overflow. The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.

Affected software

CVE-2024-6381 is recorded against 1 package.

  • libbson (fixed in 1.26.2)

Timeline and source

Published on 2 July 2024 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

jira.mongodb.org
jira.mongodb.org
lists.debian.org
lists.debian.org

CVE-2024-6381 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity MEDIUM
CVSS Score 4.0
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CWE CWE-680
Public Exploit ✅ No
Source NVD
Published 2024-07-02
Updated 2026-08-11
Modified 2026-06-17
Fix URL N/A

Affected Packages

Software From version Fixed in
libbson 1.26.2

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in libbson

CVE-2024-6381 is rated CVSS 4.0 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024