CVE-2026-6231: The bson_validate function may return early on specific inputs and incorrectly report success
CVE-2026-6231 is a medium-severity flaw (CVSS 4.3) affecting c driver. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.2% (top 92%) |
| CISA exploited list | No |
| Weakness | CWE-20 |
| Published | 2026-04-13 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-6231?
c driver: upgrade to 1.30.5, 2.0.2. Exact commands for each OS are on this page.
Is CVE-2026-6231 being exploited?
CVE-2026-6231 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-6231 affect?
CVE-2026-6231 affects c driver. Severity is medium (CVSS 4.3). 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 proces
How urgent is CVE-2026-6231?
Priority 17/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2026-6691 HIGH 7.8 UPGRADE The MongoDB C Driver's Cyrus SASL integration performs unsafe string copying during username canonicalization,
- CVE-2026-81524 MEDIUM 5.4 UPGRADE A weakness in the MongoDB C Driver allows special elements in caller-supplied database and collection name com
- CVE-2026-84963 MEDIUM 5.3 UPGRADE An incorrect numeric conversion in the JSON parsing component of the MongoDB C Driver's BSON library may cause
- CVE-2026-84964 MEDIUM 5.9 UPGRADE A double free in the OpenSSL-based TLS certificate revocation checking path of the MongoDB C Driver can be rea
- CVE-2026-84965 MEDIUM 5.1 UPGRADE An integer wraparound in an allocation size calculation in the BSON library's JSON parsing code can cause a bu