Skip to content
OpenAdvisories
High · 8.4 CVE-2025-0755 EUVD-2025-6467GHSA-x43h-8pfv-xx24

MongoDB C Driver bson library may be susceptible to buffer overflow

Published Mar 18, 2025 · Updated Nov 3, 2025 · Assigned by mongodb

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

Affected products

VendorProductAffectedFixed
MongoDB libbson < 1.27.5 1.27.5
MongoDB MongoDB Server 8.0 – < 8.0.1, 7.0 – < 7.0.16 8.0.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mongo-c-driver 1.27.5-1 —
Debian 13 mongo-c-driver 1.27.5-1 —
Debian 12 libbson-xs-perl 0.8.4-2+deb12u1 —
Debian 12 mongo-c-driver 1.23.1-1+deb12u1 —
Debian 11 libbson-xs-perl 0.8.4-1+deb11u1 DLA-4160-1
Debian 11 mongo-c-driver 1.17.6-1+deb11u1 DLA-4175-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS mongo-c-driver No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS mongo-c-driver 1.26.0-1.1ubuntu2+esm1 USN-7613-1
Ubuntu Pro 22.04 LTS mongo-c-driver 1.21.0-1ubuntu0.1~esm1 USN-7613-1
Ubuntu Pro 20.04 LTS mongo-c-driver 1.16.1-1ubuntu0.1~esm1 USN-7613-1

Advisories 4

References