8.4High

CVE-2025-0755MongoDB C Driver bson library may be susceptible to buffer overflow

MongoDB Inc libbson; MongoDB Inc MongoDB Server Published: (1 year ago)

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

Weakness (CWE): CWE-122

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
MongoDB Inc libbson < 1.27.5
mongodb mongodb 7.0.0
MongoDB Inc MongoDB Server 8.0 – < 8.0.1, 7.0 – < 7.0.16

References and patches

CPE matches (NVD) (3)

  • cpe:2.3:a:mongodb:libbson:*:*:*:*:*:*:*:* < 1.27.5
  • cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:* ≥ 7.0.0 < 7.0.16
  • cpe:2.3:a:mongodb:mongodb:8.0.0:*:*:*:-:*:*:*