CVE-2026-6231
bson_validate may skip validation when processing certain inputs
- State
- Published
- Severity
- 5.3 Medium
- Published
- Apr 13, 2026
- Updated
- Apr 13, 2026
- Reserved
- Apr 13, 2026
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
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | 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 | mongodb |
| 3.1 | 4.3 Medium | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N | mongodb |
Weaknesses
- CWE-20 Improper input validation
Affected Products
| Product | Versions |
|---|---|
C DriverMongoDB Inc. |
|
References
- https://jira.mongodb.org/browse/CDRIVER-6017issue-tracking
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.