# CVE-2026-6231: bson\_validate may skip validation when processing certain inputs

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-13 · Modified: 2026-04-13
- Aliases: UBUNTU-CVE-2026-6231, DEBIAN-CVE-2026-6231
- Record: https://cvemate.com/vulnerability/CVE-2026-6231 · JSON: https://cvemate.com/vulnerability/CVE-2026-6231/json

## Description

```text
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
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.196%, percentile 9.736%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian mongo-c-driver (Debian): \< 1.23.1-1+deb12u3 \| \< 1.30.4-1+deb13u2 \| \< 2.1.0-1
- ubuntu mongo-c-driver (Ubuntu): All versions (No fix recorded)
- mongodb inc. c driver: ≥ 1.0, \< 1.30.5 \| ≥ 2.0, \< 2.0.2
- mongodb c driver: \< 1.30.5 \| ≥ 2.0.0, \< 2.0.2

## References

- <https://jira.mongodb.org/browse/CDRIVER-6017>
- <https://ubuntu.com/security/CVE-2026-6231>
- <https://www.cve.org/CVERecord?id=CVE-2026-6231>
- <https://security-tracker.debian.org/tracker/CVE-2026-6231>

---

Data as of 2026-12-05T06:26:29.619Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
