CVE-2025-0755
published high CVSS 3.1 · 8.4MongoDB C Driver bson library may be susceptible to buffer overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc | — | libbson0 to < 1.27.5 · Other versions: unaffected | Affected | Not stated | mongodb |
| MongoDB Inc | — | MongoDB Server8.0 to < 8.0.1 · 7.0 to < 7.0.16 · Other versions: unaffected | Affected | Not stated | mongodb |
| Debian | bullseye | libbson-xs-perl | Advisory build | 0.8.4-1+deb11u1 | DLA-4160-1 |
| Ubuntu | noble | libbson-1.0-0t64 | Advisory build | 1.26.0-1.1ubuntu2+esm1 | USN-7613-1 |
| Debian | bullseye | mongo-c-driver | Advisory build | 1.17.6-1+deb11u1 | DLA-4175-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 various bson_append functions in the MongoDB C driver library may be susceptible to buffer overflow when performing operations that could result in a final BSON document which exceeds the maximum allowable size (INT32_MAX), resulting in a segmentation fault and possible application crash. This issue affected libbson versions prior to 1.27.5, MongoDB Server v8.0 versions prior to 8.0.1 and MongoDB Server v7.0 versions prior to 7.0.16
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
- 8.4 / 10
- Severity
- high
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- 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.27.5 (affected · custom)Default: unaffected | mongodb · cna |
| MongoDB Inc | MongoDB Server | 8.0 to < 8.0.1 (affected · custom)7.0 to < 7.0.16 (affected · custom)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-122 CWE-122: Heap-based Buffer Overflow
References
4Provider assertions
3mongodb · cna
MongoDB C Driver bson library may be susceptible to buffer overflow
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f851509a68f0aabc6c2ae2fdc29c24a624bc310e2790b984d08ad91bcd891e3a
- Ingested
- 23 Sep 2026, 08:35:30 UTC
- Source record
- Official CVE record