CVE-2026-6231

NameCVE-2026-6231
DescriptionThe 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
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
mongo-c-driver (PTS)bullseye1.17.6-1vulnerable
bullseye (security)1.17.6-1+deb11u2vulnerable
bookworm1.23.1-1+deb12u2vulnerable
trixie1.30.4-1+deb13u1vulnerable
forky, sid2.3.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
mongo-c-driversource(unstable)2.1.0-1

Notes

[trixie] - mongo-c-driver <no-dsa> (Minor issue)
[bookworm] - mongo-c-driver <no-dsa> (Minor issue)
[bullseye] - mongo-c-driver <postponed> (minor issue)
https://jira.mongodb.org/browse/CDRIVER-6017
Fixed by: https://github.com/mongodb/mongo-c-driver/commit/d184525513e5bf21f30810c00d6b0094aac8b00c (2.1.0)
Fixed by: https://github.com/mongodb/mongo-c-driver/commit/9fd3ec04b433f2f62b267e5b3868dd8d538245eb (2.1.0)
Fixed by: https://github.com/mongodb/mongo-c-driver/commit/ea3559687c5fc9c566b376299a3b43443a9c7f96 (2.1.0)
Fixed by: https://github.com/mongodb/mongo-c-driver/commit/40b673787060a80ef7f4875ae776cb4731dadec9 (1.30.5)
Fixed by: https://github.com/mongodb/mongo-c-driver/commit/017e630199cd006e01288b241774168b7d2b8bdf (1.30.5)

Search for package or bug name: Reporting problems