MongoDB libbson up to 1.26.1 bson_strfreev integer overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.2 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, was found in MongoDB libbson up to 1.26.1. Affected is the function bson_strfreev. The manipulation results in integer overflow.
This vulnerability was named CVE-2024-6381. The attack needs to be approached locally. There is no available exploit.
You should upgrade the affected component.
Details
A vulnerability was found in MongoDB libbson up to 1.26.1. It has been classified as problematic. Affected is the function bson_strfreev. The manipulation with an unknown input leads to a integer overflow vulnerability. CWE is classifying the issue as CWE-680. 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. This is going to have an impact on integrity. CVE summarizes:
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
The advisory is available at jira.mongodb.org. This vulnerability is traded as CVE-2024-6381 since 06/27/2024. The exploitability is told to be easy. Local access is required to approach this attack. Technical details are known, but there is no available exploit.
The vulnerability scanner Nessus provides a plugin with the ID 235667 (Debian dla-4160 : libbson-xs-perl - security update), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 1.26.2 eliminates this vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (235667). If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Type
Vendor
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.2VulDB Meta Temp Score: 4.2
VulDB Base Score: 3.3
VulDB Temp Score: 3.2
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 5.3
NVD Vector: 🔍
CNA Base Score: 4.0
CNA Vector (MongoDB, Inc.): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Integer overflowCWE: CWE-680 / CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 235667
Nessus Name: Debian dla-4160 : libbson-xs-perl - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: libbson 1.26.2
Timeline
06/27/2024 🔍07/02/2024 🔍
07/02/2024 🔍
10/02/2025 🔍
Sources
Advisory: jira.mongodb.orgStatus: Confirmed
CVE: CVE-2024-6381 (🔍)
GCVE (CVE): GCVE-0-2024-6381
GCVE (VulDB): GCVE-100-270258
Entry
Created: 07/02/2024 20:58Updated: 10/02/2025 15:54
Changes: 07/02/2024 20:58 (64), 05/10/2025 10:18 (3), 10/02/2025 15:54 (12)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.