Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-6231 EUVD-2026-22023GHSA-q869-m422-4qcv

bson_validate may skip validation when processing certain inputs

Published Apr 13, 2026 · Updated Apr 13, 2026 · Assigned by mongodb

Description

The bson_validate function may return early on specific inputs and incorrectly report success. This behavior could result in skipping validation for BSON data, allowing malformed or invalid UTF-8 sequences to bypass validation and be processed incorrectly. The issue may affect applications that rely on these functions to validate untrusted BSON data before further processing. This issue affects MongoDB C Driver versions prior to 1.30.5, MongoDB C Driver version 2.0.0 and MongoDB C Driver version 2.0.1

Affected products

VendorProductAffectedFixed
MongoDB C Driver 1.0 – < 1.30.5, 2.0 – < 2.0.2 1.30.5

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 2.1.0-1 —
Debian 13 mongo-c-driver 1.30.4-1+deb13u2 —
Debian 12 mongo-c-driver 1.23.1-1+deb12u3 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 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 No fix yet —
Ubuntu Pro 22.04 LTS mongo-c-driver No fix yet —
Ubuntu Pro 20.04 LTS mongo-c-driver No fix yet —

Advisories 1

References