🛡️ CVE-2024-6381 — libbson
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
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| libbson | — | 1.26.2 |
References
Similar Threats
- Unknown DEBIAN-CVE-2025-40906
- Unknown UBUNTU-CVE-2025-40906
- Unknown DLA-4160-1
- High CVE-2025-0755
- Unknown DEBIAN-CVE-2025-0755
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.