{"api_version":"1","generated_at":"2026-07-23T22:02:22+00:00","cve":"CVE-2020-12135","urls":{"html":"https://cve.report/CVE-2020-12135","api":"https://cve.report/api/cve/CVE-2020-12135.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-12135","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-12135"},"summary":{"title":"CVE-2020-12135","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2020-04-24 01:15:00","updated_at":"2020-08-12 17:15:00"},"problem_types":["CWE-190"],"metrics":[],"references":[{"url":"https://usn.ubuntu.com/4450-1/","name":"USN-4450-1","refsource":"UBUNTU","tags":[],"title":"USN-4450-1: Whoopsie vulnerabilities | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch","name":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"","mime":"text/x-diff","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577","name":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"don't mix up int and size_t (first pass to fix that) · 10gen-archive/mongo-c-driver-legacy@1a1f5e2 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560","name":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560","refsource":"MISC","tags":["Exploit","Third Party Advisory"],"title":"Bug #1872560 “integer overflow in whoopsie 0.2.69” : Bugs : whoopsie package : Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-12135","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-12135","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"12135","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mongodb","cpe5":"c_driver","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"12135","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mongodb","cpe5":"c_driver","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"12135","vulnerable":"1","versionEndIncluding":"0.2.69","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"whoopsie_project","cpe5":"whoopsie","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"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":[{"url":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560","refsource":"MISC","name":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560"},{"url":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch","refsource":"MISC","name":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch"},{"url":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577","refsource":"MISC","name":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577"},{"refsource":"UBUNTU","name":"USN-4450-1","url":"https://usn.ubuntu.com/4450-1/"}]}},"nvd":{"publishedDate":"2020-04-24 01:15:00","lastModifiedDate":"2020-08-12 17:15:00","problem_types":["CWE-190"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:whoopsie_project:whoopsie:*:*:*:*:*:*:*:*","versionEndIncluding":"0.2.69","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:*","versionEndExcluding":"0.8","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"12135","Ordinal":"173275","Title":"CVE-2020-12135","CVE":"CVE-2020-12135","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"12135","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"12135","Ordinal":"2","NoteData":"2020-04-23","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"12135","Ordinal":"3","NoteData":"2020-08-12","Type":"Other","Title":"Modified"}]}}}