CVE-2026-6231
published medium CVSS 4.0 · 5.3bson_validate may skip validation when processing certain inputs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc. | — | C Driver1.0 to < 1.30.5 · 2.0 to < 2.0.2 · Other versions: unaffected | Affected | Not stated | mongodb |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.3 | medium | mongodb · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc. | C Driver | 1.0 to < 1.30.5 (affected · custom)2.0 to < 2.0.2 (affected · custom)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-20 CWE-20 Improper input validation
References
1Provider assertions
2mongodb · cna
bson_validate may skip validation when processing certain inputs
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 42db4b00226597c8d88edb9bdd699ab9e10d5cb33fafc42ba56a7cefe846bac8
- Ingested
- 23 Sep 2026, 09:28:24 UTC
- Source record
- Official CVE record