{"id":"UBUNTU-CVE-2021-20329","details":"Specific cstrings input may not be properly validated in the MongoDB Go Driver when marshalling Go objects into BSON. A malicious user could use a Go object with specific string to potentially inject additional fields into marshalled documents. This issue affects all MongoDB GO Drivers prior to and including 1.5.0.","modified":"2026-02-19T19:15:58.290730Z","published":"2021-06-10T17:15:00Z","withdrawn":"2026-02-19T16:58:35Z","upstream":["CVE-2021-20329"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-20329"},{"type":"REPORT","url":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-20329"}],"affected":[{"package":{"name":"mongodb","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/mongodb@1:2.4.9-1ubuntu2?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.4.6-0ubuntu5","1:2.4.6-0ubuntu6","1:2.4.8-1ubuntu1","1:2.4.8-2","1:2.4.9-1","1:2.4.9-1ubuntu1","1:2.4.9-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"mongodb","binary_version":"1:2.4.9-1ubuntu2"},{"binary_version":"1:2.4.9-1ubuntu2","binary_name":"mongodb-clients"},{"binary_name":"mongodb-dev","binary_version":"1:2.4.9-1ubuntu2"},{"binary_name":"mongodb-server","binary_version":"1:2.4.9-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20329.json"}},{"package":{"name":"mongodb","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/mongodb@1:2.6.10-0ubuntu1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2.6.10-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:2.6.10-0ubuntu1","binary_name":"mongodb"},{"binary_name":"mongodb-clients","binary_version":"1:2.6.10-0ubuntu1"},{"binary_name":"mongodb-server","binary_version":"1:2.6.10-0ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20329.json"}},{"package":{"name":"mongodb","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/mongodb@1:3.6.3-0ubuntu1.4?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.4.7-1","1:3.4.7-1ubuntu1","1:3.4.7-1ubuntu2","1:3.4.7-1ubuntu4","1:3.4.14-3ubuntu1","1:3.4.14-3ubuntu2","1:3.6.3-0ubuntu1","1:3.6.3-0ubuntu1.1","1:3.6.3-0ubuntu1.3","1:3.6.3-0ubuntu1.4"],"ecosystem_specific":{"binaries":[{"binary_version":"1:3.6.3-0ubuntu1.4","binary_name":"mongodb"},{"binary_name":"mongodb-clients","binary_version":"1:3.6.3-0ubuntu1.4"},{"binary_name":"mongodb-server","binary_version":"1:3.6.3-0ubuntu1.4"},{"binary_name":"mongodb-server-core","binary_version":"1:3.6.3-0ubuntu1.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20329.json"}},{"package":{"name":"mongodb","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/mongodb@1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2","1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5","1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.2","1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3"],"ecosystem_specific":{"binaries":[{"binary_name":"mongodb","binary_version":"1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3"},{"binary_name":"mongodb-clients","binary_version":"1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3"},{"binary_name":"mongodb-server","binary_version":"1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3"},{"binary_name":"mongodb-server-core","binary_version":"1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20329.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"low"}]}