{"id":"CVE-2020-12135","aliases":["DEBIAN-CVE-2020-12135","EUVD-2020-4450","GHSA-f54q-h8mw-5h8w","UBUNTU-CVE-2020-12135","USN-4450-1"],"status":"published","title":"bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and...","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.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01165,"percentile":0.67749,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2020-04-24T00:31:51Z","modified":"2026-10-26T12:01:26Z","fixes":[{"ecosystem":"Ubuntu:16.04:LTS","package":"whoopsie","fixed_in":["0.2.52.5ubuntu0.5"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"whoopsie","fixed_in":["0.2.62ubuntu0.5"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"whoopsie","fixed_in":["0.2.69ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.3-1","1.11.3-1.1","1.11.3-1.1~exp1","1.11.3-1.2"]},{"source":"osv","ecosystem":"Debian:13","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.3-1.2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"whoopsie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.52.5ubuntu0.5"}]}],"versions":["0.2.49","0.2.50","0.2.51","0.2.52","0.2.52.1","0.2.52.2","0.2.52.3","0.2.52.4","0.2.52.5","0.2.52.5ubuntu0.1","0.2.52.5ubuntu0.2","0.2.52.5ubuntu0.3","0.2.52.5ubuntu0.4"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.11-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"whoopsie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.62ubuntu0.5"}]}],"versions":["0.2.58","0.2.59","0.2.59build1","0.2.60","0.2.62","0.2.62ubuntu0.1","0.2.62ubuntu0.2","0.2.62ubuntu0.3","0.2.62ubuntu0.4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.21-1","1.9.21-1build1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"whoopsie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.69ubuntu0.1"}]}],"versions":["0.2.66","0.2.67","0.2.68","0.2.69"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.21-1.1","1.11.3-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.3-1","1.11.3-1build1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.3-1build1","1.11.3-1.1","1.11.3-1.1build1","1.11.3-1.1build2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.3-1.2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.3-1.2build1","1.11.3-1.2ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"duo-unix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.3-1.2","1.11.3-1.2build1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"whoopsie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.52.5ubuntu0.5"}]}],"versions":["0.2.49","0.2.50","0.2.51","0.2.52","0.2.52.1","0.2.52.2","0.2.52.3","0.2.52.4","0.2.52.5","0.2.52.5ubuntu0.1","0.2.52.5ubuntu0.2","0.2.52.5ubuntu0.3","0.2.52.5ubuntu0.4"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"whoopsie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.62ubuntu0.5"}]}],"versions":["0.2.58","0.2.59","0.2.59build1","0.2.60","0.2.62","0.2.62ubuntu0.1","0.2.62ubuntu0.2","0.2.62ubuntu0.3","0.2.62ubuntu0.4"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"whoopsie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.69ubuntu0.1"}]}],"versions":["0.2.66","0.2.67","0.2.68","0.2.69"],"bundled":3}],"products":[{"vendor":"mongodb","product":"c_driver"},{"vendor":"whoopsie_project","product":"whoopsie"}],"references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://usn.ubuntu.com/4450-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-12135"},{"url":"https://github.com/advisories/GHSA-f54q-h8mw-5h8w"},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-12135","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-12135","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4450-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-12135","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-11937","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-15570","tags":["report"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2020-04-24T00:31:51Z","modified":"2024-08-04T11:48:58.185Z","updated_at":"2026-11-02T14:35:52.925152Z"}],"euvd":[{"id":"EUVD-2020-4450","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.","status":"published","published":"2020-04-24T00:31:51Z","modified":"2024-08-04T11:48:58Z","updated_at":"2026-11-03T03:07:40.81889Z"}],"ghsa":[{"id":"GHSA-f54q-h8mw-5h8w","title":"bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and...","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.","status":"published","published":"2022-05-24T17:16:25Z","modified":"2023-01-29T05:02:27Z","updated_at":"2026-11-02T14:45:05.277553Z"}],"nvd":[{"id":"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.","status":"published","published":"2020-04-24T01:15:11.43Z","modified":"2026-06-17T02:51:28.083Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:05:59.718774Z"}],"osv":[{"id":"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.","status":"published","published":"2020-04-24T01:15:11.43Z","modified":"2026-10-24T14:06:23.017989308Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:14.034736Z"},{"id":"DEBIAN-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.","status":"published","published":"2020-04-24T01:15:11.43Z","modified":"2026-10-26T12:01:26.049656271Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:32.862554Z"},{"id":"UBUNTU-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.","status":"published","published":"2020-04-24T01:15:00Z","modified":"2026-10-17T12:55:51.197289111Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:22.804634Z"},{"id":"USN-4450-1","title":"whoopsie vulnerabilities","description":"Seong-Joong Kim discovered that Whoopsie incorrectly handled memory. A\nlocal attacker could use this issue to cause Whoopsie to consume memory,\nresulting in a denial of service. (CVE-2020-11937)\n\nSeong-Joong Kim discovered that Whoopsie incorrectly handled parsing files.\nA local attacker could use this issue to cause Whoopsie to crash, resulting\nin a denial of service, or possibly execute arbitrary code.\n(CVE-2020-12135)\n\nSeong-Joong Kim discovered that Whoopsie incorrectly handled memory. A\nlocal attacker could use this issue to cause Whoopsie to consume memory,\nresulting in a denial of service. (CVE-2020-15570)\n","status":"published","published":"2020-08-04T17:14:50Z","modified":"2026-04-27T19:02:57.485137459Z","updated_at":"2026-11-02T16:58:14.547547Z"}]}}
