The various bsonappend 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 (INT32MAX), 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
{
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"fixed": "1.27.5"
},
{
"introduced": "8.0"
},
{
"fixed": "8.0.1"
},
{
"introduced": "7.0"
},
{
"fixed": "7.0.16"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/0xxx/CVE-2025-0755.json",
"cna_assigner": "mongodb",
"cwe_ids": [
"CWE-122"
]
}{
"source": [
"CPE_RANGE",
"CPE_STRING"
],
"cpe": [
"cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:*",
"cpe:2.3:a:mongodb:mongodb:8.0.0:*:*:*:-:*:*:*"
],
"extracted_events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.0.16"
},
{
"introduced": "8.0.0"
},
{
"last_affected": "8.0.0"
}
]
}{
"source": "CPE_RANGE",
"cpe": "cpe:2.3:a:mongodb:libbson:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.27.5"
}
]
}