{"id":"CVE-2020-12135","state":"PUBLISHED","title":"bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. In particular, the bson_ensure_space() parameter bytesNeeded could have a","description":"bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. In particular, the bson_ensure_space() parameter bytesNeeded could have an integer overflow via properly constructed bson input.","publishedAt":"2020-04-24T00:31:51.000Z","updatedAt":"2024-08-04T11:48:58.185Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560","https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch","https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577","https://usn.ubuntu.com/4450-1/"],"weaknesses":[],"ingestedAt":"2026-10-29T19:46:27.697Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/12xxx/CVE-2020-12135.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-12135","state":"PUBLISHED","datePublished":"2020-04-24T00:31:51.000Z","dateUpdated":"2024-08-04T11:48:58.185Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2020-04-24T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. In particular, the bson_ensure_space() parameter bytesNeeded could have an integer overflow via properly constructed bson input."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560","tags":["x_refsource_MISC"]},{"url":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch","tags":["x_refsource_MISC"]},{"url":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/4450-1/","name":"USN-4450-1","tags":["vendor-advisory","x_refsource_UBUNTU"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2020-08-12T16:06:11.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2020-12135","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. In particular, the bson_ensure_space() parameter bytesNeeded could have an integer overflow via properly constructed bson input."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560","refsource":"MISC","url":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560"},{"name":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch","refsource":"MISC","url":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch"},{"name":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577","refsource":"MISC","url":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577"},{"name":"USN-4450-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/4450-1/"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://usn.ubuntu.com/4450-1/","name":"USN-4450-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T11:48:58.185Z"}}]}}}