CVE-2026-6231 bson_validate may skip validation when processing certain inputs
MediumCVSS 5.3
EPSS 0.19%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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
Upgrade path
6 packages: 4 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/mongo-c-driver(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/mongo-c-driver(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| debian/mongo-c-driver(Debian 12) | < 1.23.1-1+deb12u3; = 1.23.1-1; = 1.23.1-1+deb12u1; = 1.23.1-1+deb12u2 | 1.23.1-1+deb12u3 | Fixed |
| debian/mongo-c-driver(Debian 13) | < 1.30.4-1+deb13u2; = 1.30.4-1; = 1.30.4-1+deb13u1 | 1.30.4-1+deb13u2 | Fixed |
| debian/mongo-c-driver(Debian 14) | < 2.1.0-1; = 1.30.4-1; = 2.0.2-1 | 2.1.0-1 | Fixed |
| MongoDB C Driver | < 1.30.5; >= 1.0, < 1.30.5; >= 2.0, < 2.0.2; >= 2.0.0, < 2.0.2 | 1.30.5, 2.0.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| MongoDB C Driver | >= 1.0, < 1.30.5 | 1.30.5 |
| MongoDB C Driver | >= 2.0, < 2.0.2 | 2.0.2 |
| debian/mongo-c-driver(Debian:12) | < 1.23.1-1+deb12u3 | 1.23.1-1+deb12u3 |
| debian/mongo-c-driver(Debian:12) | = 1.23.1-1 | No fix listed |
| debian/mongo-c-driver(Debian:12) | = 1.23.1-1+deb12u1 | No fix listed |
| debian/mongo-c-driver(Debian:12) | = 1.23.1-1+deb12u2 | No fix listed |
| debian/mongo-c-driver(Debian:13) | < 1.30.4-1+deb13u2 | 1.30.4-1+deb13u2 |
| debian/mongo-c-driver(Debian:13) | = 1.30.4-1 | No fix listed |
| debian/mongo-c-driver(Debian:13) | = 1.30.4-1+deb13u1 | No fix listed |
| debian/mongo-c-driver(Debian:14) | < 2.1.0-1 | 2.1.0-1 |
| debian/mongo-c-driver(Debian:14) | = 1.30.4-1 | No fix listed |
| debian/mongo-c-driver(Debian:14) | = 2.0.2-1 | No fix listed |
| ubuntu/mongo-c-driver(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/mongo-c-driver(Ubuntu:24.04) | All versions | No fix listed |
| MongoDB C Driver | < 1.30.5 | 1.30.5 |
| MongoDB C Driver | >= 2.0.0, < 2.0.2 | 2.0.2 |
References
- jira.mongodb.org issue-tracking patch
- Debian Security Tracker CVE-2026-6231 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org