{"id":"CVE-2026-6231","summary":"bson_validate may skip validation when processing certain inputs","details":"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","modified":"2026-07-08T08:11:37.200406804Z","published":"2026-04-13T15:31:55.735Z","database_specific":{"cna_assigner":"mongodb","unresolved_ranges":[{"extracted_events":[{"introduced":"1.0"},{"fixed":"1.30.5"},{"introduced":"2.0"},{"fixed":"2.0.2"}],"source":"AFFECTED_FIELD"}],"cwe_ids":["CWE-20"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6231.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6231.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6231"},{"type":"REPORT","url":"https://jira.mongodb.org/browse/CDRIVER-6017"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mongodb/mongo-c-driver","events":[{"introduced":"0"},{"fixed":"252989c310f7a326230f66311630ba259e34e4b3"},{"introduced":"67817df0a9ed11b07e457477e6db1384da9421c4"},{"fixed":"d94ed7a504c227fa8a69d979abff485174f3cf5d"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"1.30.5"},{"introduced":"2.0.0"},{"fixed":"2.0.2"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*"}}],"versions":["1.30.4","2.0.1","1.30.3","2.0.0","1.30.2","1.30.1","1.30.0","1.11.0","1.9.0-rc1","1.9.0-rc0","1.7.0-rc0","1.6.0","1.6.0-rc0","1.5.0-rc4","1.5.0-rc3","1.5.0-rc2","1.5.0-rc1","1.5.0-rc0","1.4.0-beta1","1.3.0","1.3.0-rc0","1.1.11","1.1.10","1.1.9","1.1.8","1.1.7","1.1.6","1.1.5","1.1.4","1.1.2","1.1.0","1.1.0-rc0","1.0.2","1.0.0","0.98.2","0.98.0","0.96.4","0.96.0","0.94.2","0.94.0","0.92.2","0.92.0","0.90.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-6231.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}]}