Buffer overflow in MongoDB Libbson
CVE-2025-0755
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
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.4 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.008, 56.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- MongoDB Libbson
- MongoDB — versions 8.0.0
- MongoDB Inc Libbson — versions 0
- MongoDB Inc Server — versions 8.0, 7.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cve-scores, fkie-cad/nvd-json-data-feeds, w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- jira.mongodb.org/browse/SERVER-94461 (Issue Tracking, Vendor Advisory)
- jira.mongodb.org/browse/CDRIVER-5601 (Issue Tracking, Vendor Advisory)
- lists.debian.org/debian-lts-announce/2025/05/msg00012.html
- lists.debian.org/debian-lts-announce/2025/05/msg00027.html