| Name | CVE-2026-6231 |
| 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 |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| mongo-c-driver (PTS) | bullseye | 1.17.6-1 | vulnerable |
| bullseye (security) | 1.17.6-1+deb11u2 | vulnerable | |
| bookworm | 1.23.1-1+deb12u2 | vulnerable | |
| trixie | 1.30.4-1+deb13u1 | vulnerable | |
| forky, sid | 2.3.0-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| mongo-c-driver | source | (unstable) | 2.1.0-1 |
[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)