{"id":"UBUNTU-CVE-2026-120956","details":"The MongoDB C Driver does not validate the type or format of a namespace field returned by the server in a query response. A MongoDB endpoint that a client application connects to, without needing any credentials, can return a malformed value in that field. This causes the client application process to terminate, and can also cause the driver to read memory outside an allocated buffer and to send a small amount of the application's own uninitialized heap memory back to the endpoint in a follow-up command. The impact is limited to the process that embeds the driver.","modified":"2026-11-05T11:47:28.492187365Z","published":"2026-11-03T19:18:00Z","upstream":["CVE-2026-120956"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-120956"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-120956"},{"type":"REPORT","url":"https://jira.mongodb.org/browse/CDRIVER-6501"}],"affected":[{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps%2Ffocal"},"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-120956.json"}},{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps%2Fjammy"},"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_version":"1.21.0-1ubuntu0.1~esm1","binary_name":"libmongoc-1.0-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120956.json"}},{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps%2Fnoble"},"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-120956.json"}},{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.2-1","2.3.1-1","2.3.2-1","2.3.3-1build1","2.5.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.0-1","binary_name":"libbson2-2"},{"binary_version":"2.5.0-1","binary_name":"libmongoc2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120956.json"}},{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.30.4-1ubuntu1","2.2.0-1","2.2.1-1","2.2.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libbson2-2","binary_version":"2.2.2-1"},{"binary_version":"2.2.2-1","binary_name":"libmongoc2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120956.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}