CVE-2026-6231
CVE-2026-6231 · bson_validate may skip validation when processing certain inputs
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
CVSS 5.3 · Medium · EPSS 0.3% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
c driver
- Versions
- ≥ 1.0, < 1.30.5: Affected (custom)
- ≥ 2.0, < 2.0.2: Affected (custom)
Update to 1.30.5; Update to 2.0.2
mongo-c-driver Debian:12
- Versions
- 1.23.1-1
- 1.23.1-1+deb12u1
- 1.23.1-1+deb12u2
- Affected ranges
- ECOSYSTEM: < 1.23.1-1+deb12u3
Update to 1.23.1-1+deb12u3
mongo-c-driver Debian:13
- Versions
- 1.30.4-1
- 1.30.4-1+deb13u1
- Affected ranges
- ECOSYSTEM: < 1.30.4-1+deb13u2
Update to 1.30.4-1+deb13u2
mongo-c-driver Debian:14
- Versions
- 1.30.4-1
- 2.0.2-1
- Affected ranges
- ECOSYSTEM: < 2.1.0-1
Update to 2.1.0-1
mongo-c-driver Ubuntu:Pro:20.04:LTS
- Versions
- 1.15.0-1
- 1.15.1-1
- 1.15.2-1
- 1.16.0-1
- 1.16.1-1
- 1.16.1-1build1
- 1.16.1-1build2
- 1.16.1-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mongo-c-driver Ubuntu:Pro:22.04:LTS
- Versions
- 1.18.0-1
- 1.19.1-1
- 1.19.2-1
- 1.20.0-1
- 1.20.0-1build1
- 1.20.1-1
- 1.21.0-1
- 1.21.0-1build1
- 1.21.0-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mongo-c-driver Ubuntu:Pro:24.04:LTS
- Versions
- 1.24.3-1
- 1.24.4-1
- 1.25.1-1
- 1.25.2-1
- 1.25.4-1
- 1.26.0-1
- 1.26.0-1.1ubuntu1
- 1.26.0-1.1ubuntu2
- 1.26.0-1.1ubuntu2+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mongo-c-driver Ubuntu:25.10
- Versions
- 1.30.2-1
- 1.30.4-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published