{"id":"UBUNTU-CVE-2026-6231","details":"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","modified":"2026-05-12T16:49:52.142749Z","published":"2026-04-13T16:16:00Z","upstream":["CVE-2026-6231"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-6231"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-6231"},{"type":"REPORT","url":"https://jira.mongodb.org/browse/CDRIVER-6017"}],"affected":[{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/mongo-c-driver@1.16.1-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libbson-1.0-0","binary_version":"1.16.1-1ubuntu0.1~esm1"},{"binary_name":"libmongoc-1.0-0","binary_version":"1.16.1-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-6231.json"}},{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/mongo-c-driver@1.21.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_version":"1.21.0-1ubuntu0.1~esm1","binary_name":"libbson-1.0-0"},{"binary_name":"libmongoc-1.0-0","binary_version":"1.21.0-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-6231.json"}},{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/mongo-c-driver@1.26.0-1.1ubuntu2+esm1?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libbson-1.0-0t64","binary_version":"1.26.0-1.1ubuntu2+esm1"},{"binary_version":"1.26.0-1.1ubuntu2+esm1","binary_name":"libmongoc-1.0-0t64"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-6231.json"}},{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/mongo-c-driver@1.30.4-1ubuntu1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.30.2-1","1.30.4-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libbson-1.0-0t64","binary_version":"1.30.4-1ubuntu1"},{"binary_name":"libmongoc-1.0-0t64","binary_version":"1.30.4-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-6231.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}