Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-0437 EUVD-2023-12492GHSA-8549-4c5j-x7g2

MongoDB client C Driver may infinitely loop when validating certain BSON input data

Published Jan 12, 2024 · Updated Nov 3, 2025 · Assigned by mongodb

Description

When calling bson_utf8_validate on some inputs a loop with an exit condition that cannot be reached may occur, i.e. an infinite loop. This issue affects All MongoDB C Driver versions prior to versions 1.25.0.

Affected products

VendorProductAffectedFixed
MongoDB MongoDB C Driver 1.0.0 – < 1.25.0 1.25.0

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.25.0-1 —
Debian 13 mongo-c-driver 1.25.0-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
Alpine v3.24 mongo-c-driver 1.25.4-r0 —
Alpine v3.23 mongo-c-driver 1.25.4-r0 —
Alpine v3.22 mongo-c-driver 1.25.4-r0 —
Alpine v3.21 mongo-c-driver 1.25.4-r0 —
Alpine v3.20 mongo-c-driver 1.25.4-r0 —

Advisories 3

References