CVE-2026-6231: bson_validate may skip validation when processing certain inputs
The bsonvalidate 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
MongoDB C Driverto a version that resolves this vulnerability.Fixed in 1.30.5
Event History
Frequently Asked Questions
What is the severity of CVE-2026-6231?
CVE-2026-6231 has a high severity rating due to its potential to allow malformed BSON data to bypass validation.
How do I fix CVE-2026-6231?
To fix CVE-2026-6231, it is recommended to upgrade to a version of the MongoDB C Driver that is higher than 1.30.5 and does not include the vulnerabilities available in versions 2.0.0 and 2.0.1.
What systems are affected by CVE-2026-6231?
CVE-2026-6231 affects the MongoDB C Driver versions 1.30.5 and below, as well as specific 2.0.0 and 2.0.1 releases.
What vulnerabilities does CVE-2026-6231 exploit?
CVE-2026-6231 exploits the bson_validate function which may incorrectly report successful validation, skipping checks for certain inputs.
What are the implications of CVE-2026-6231?
The implications of CVE-2026-6231 can lead to data integrity issues if invalid BSON data, including malformed UTF-8 sequences, is processed by the application.