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

Read the record on cve.org

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

CVSSScoreVectorSource
4.05.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:Nmongodb
3.14.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:Nmongodb

Weaknesses

  • CWE-20 Improper input validation

Affected Products

ProductVersions
C DriverMongoDB Inc.
  • 1.0 to before 1.30.5Affected
  • 2.0 to before 2.0.2Affected

References

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.