{"id":"UBUNTU-CVE-2024-6383","details":"The bson_string_append function in MongoDB C Driver may be vulnerable to a buffer overflow where the function might attempt to allocate too small of buffer and may lead to memory corruption of neighbouring heap memory. This issue affects libbson versions prior to 1.27.1","modified":"2026-02-04T03:08:24.733553Z","published":"2024-07-03T22:15:00Z","related":["USN-7613-1"],"upstream":["CVE-2024-6383"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-6383"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-6383"},{"type":"REPORT","url":"https://jira.mongodb.org/browse/CDRIVER-5628"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7613-1"}],"affected":[{"package":{"name":"libbson","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libbson@1.3.1-1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.1-1","1.3.1-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.3.1-1ubuntu0.1~esm1","binary_name":"libbson-1.0-0"},{"binary_version":"1.3.1-1ubuntu0.1~esm1","binary_name":"libbson-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-6383.json"}},{"package":{"name":"libbson","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libbson@1.9.2-1ubuntu0.1~esm2?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.0-1","1.8.1-1","1.9.0-1","1.9.2-1","1.9.2-1ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.2-1ubuntu0.1~esm2","binary_name":"libbson-1.0-0"},{"binary_version":"1.9.2-1ubuntu0.1~esm2","binary_name":"libbson-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-6383.json"}},{"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_version":"1.16.1-1ubuntu0.1~esm1","binary_name":"libbson-1.0-0"},{"binary_version":"1.16.1-1ubuntu0.1~esm1","binary_name":"libbson-dev"},{"binary_version":"1.16.1-1ubuntu0.1~esm1","binary_name":"libmongoc-1.0-0"},{"binary_version":"1.16.1-1ubuntu0.1~esm1","binary_name":"libmongoc-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-6383.json"}},{"package":{"name":"mongo-c-driver","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/mongo-c-driver@1.21.0-1build1?arch=source&distro=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"],"ecosystem_specific":{"binaries":[{"binary_version":"1.21.0-1build1","binary_name":"libbson-1.0-0"},{"binary_version":"1.21.0-1build1","binary_name":"libbson-dev"},{"binary_version":"1.21.0-1build1","binary_name":"libmongoc-1.0-0"},{"binary_version":"1.21.0-1build1","binary_name":"libmongoc-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-6383.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"},{"fixed":"1.26.0-1.1ubuntu2+esm1"}]}],"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"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"1.26.0-1.1ubuntu2+esm1","binary_name":"libbson-1.0-0t64"},{"binary_version":"1.26.0-1.1ubuntu2+esm1","binary_name":"libbson-dev"},{"binary_version":"1.26.0-1.1ubuntu2+esm1","binary_name":"libmongoc-1.0-0t64"},{"binary_version":"1.26.0-1.1ubuntu2+esm1","binary_name":"libmongoc-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-6383.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}