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
[ { "signature_type": "Line", "id": "CVE-2025-0755-f4e7f784", "source": "https://github.com/mongodb/mongo/commit/83c3f10433284e1296498e90d8e1439af951deec", "signature_version": "v1", "target": { "file": "src/mongo/bson/bsonelement.cpp" }, "digest": { "threshold": 0.9, "line_hashes": [ "289615031260393640600166978000810598326", "174263353031095360354811222590375994238", "37893113743661401367433766006617245139", "198144288324145422179690954053153156848", "36736246737633378293539884485657169555", "107960196219712511888740040531924676267", "206814875902817473337604736024570314060", "53794623527901874886021005038858917961", "86216376997418627178498948009103823509", "288140461283838078858484965111659814713", "10494605545332134506779439480935528073", "247093533371582096541006174949470880670", "238562345504294130821711521928913826245", "40087696666882332579116474790751576649", "178274430025655671790804198721508786684", "305981361343553242930562815423828793219", "5425285738287593101438645327605096452", "156448683704151910540358080284558968747", "211541693896111393054536435571123395187", "270125743232337666654344342259579419777", "199307348140951533813034461210201531339", "158338784605393838348032193174577480773", "192065423660775606198050130755657769016", "164808174757467748202056433614118846976", "257873045955097889346597301578982132831", "206036861653635625985012625410408853630", "33564014120465565687393381457032042640", "203221042432156515722803349853247916204", "76821125106791797375526121394193145082", "155500411777895219702765076758184467317" ] }, "deprecated": false } ]