CVE-2024-6381
published medium CVSS 3.1 · 4.0MongoDB C Driver bson_strfreev may be susceptible to integer overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc | — | libbson0 to < 1.26.2 · Other versions: unaffected | Affected | Not stated | mongodb |
| Debian | bullseye | libbson-xs-perl | Advisory build | 0.8.4-1+deb11u1 | DLA-4160-1 |
| Ubuntu | focal | libbson-1.0-0 | Advisory build | 1.16.1-1ubuntu0.1~esm1 | USN-7613-1 |
| Debian | bullseye | mongo-c-driver | Advisory build | 1.17.6-1+deb11u1 | DLA-4175-1 |
| Ubuntu | focal | libmongoc-1.0-0 | Advisory build | 1.16.1-1ubuntu0.1~esm1 | USN-7613-1 |
| Ubuntu | focal | mongo-c-driver | Advisory build | 1.16.1-1ubuntu0.1~esm1 | USN-7613-1 |
| Ubuntu | jammy | libbson-1.0-0 | Advisory build | 1.21.0-1ubuntu0.1~esm1 | USN-7613-1 |
| Ubuntu | jammy | libmongoc-1.0-0 | Advisory build | 1.21.0-1ubuntu0.1~esm1 | USN-7613-1 |
Show 4 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | mongo-c-driver | Advisory build | 1.21.0-1ubuntu0.1~esm1 | USN-7613-1 |
| Ubuntu | noble | libbson-1.0-0t64 | Advisory build | 1.26.0-1.1ubuntu2+esm1 | USN-7613-1 |
| Ubuntu | noble | libmongoc-1.0-0t64 | Advisory build | 1.26.0-1.1ubuntu2+esm1 | USN-7613-1 |
| Ubuntu | noble | mongo-c-driver | Advisory build | 1.26.0-1.1ubuntu2+esm1 | USN-7613-1 |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.0 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc | libbson | 0 to < 1.26.2 (affected · custom)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-680 CWE-680: Integer Overflow to Buffer Overflow
References
3Provider assertions
3mongodb · cna
MongoDB C Driver bson_strfreev may be susceptible to integer overflow
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 715c99d83bf9a284638752a4e005c907943b12c7e0c849409fd2daf5d35ecd88
- Ingested
- 23 Sep 2026, 08:33:03 UTC
- Source record
- Official CVE record