{"id":"CVE-2020-12135","aliases":["CVE-2020-12135"],"related":[],"kind":"vulnerability","state":"published","title":"bson before 0.8 incorrectly uses int rather than sizet for many variables, parameters, and return values.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"bson en versiones anteriores a la 0.8 usa incorrectamente int en lugar de size_t para muchas variables, parámetros y valores de retorno. En particular, el parámetro bson_ensure_space () bytesNeeded podría tener un desbordamiento de enteros a través de una entrada bson construida correctamente.","source":"nvd"}],"published":"2020-04-24T00:31:51.000Z","modified":"2026-06-17T02:51:28.083Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"0.2.69"}],"vendor":"whoopsie_project","product":"whoopsie","cpe":"cpe:2.3:a:whoopsie_project:whoopsie:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"0.8"}],"vendor":"mongodb","product":"c_driver","cpe":"cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://usn.ubuntu.com/4450-1/","tags":["vendor-advisory","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-12135","url":"https://www.cve.org/CVERecord?id=CVE-2020-12135","licence":"CVE Terms of Use","modified":"2024-08-04T11:48:58.185Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-12135","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-12135","licence":"Public domain","modified":"2026-06-17T02:51:28.083Z"}],"updatedAt":"2026-11-25T22:57:52.174Z","epss":{"score":0.01165,"percentile":0.68203,"date":"2026-12-01T12:00:22.000Z"}}