{"id":"CVE-2018-20802","aliases":["EUVD-2018-13344","GHSA-g6mr-mvf4-4wvj","UBUNTU-CVE-2018-20802","USN-8064-1"],"status":"published","title":"Post-auth queries on compound index may crash mongod","description":"A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries with compound indexes affecting QueryPlanner. This issue affects MongoDB Server v3.6 versions prior to 3.6.9 and MongoDB Server v4.0 versions prior to 4.0.3.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-07","score":0.01584,"percentile":0.75713,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-394"],"published":"2020-11-23T15:15:18Z","modified":"2026-10-24T14:20:15Z","fixes":[{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"mongodb","fixed_in":["1:3.6.3-0ubuntu1.4+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"mongodb","fixed_in":["1:2.4.9-1ubuntu2+esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"mongodb","fixed_in":["1:2.6.10-0ubuntu1+esm2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"mongodb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.6.3-0ubuntu1.4+esm1"}]}],"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"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"mongodb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.4.9-1ubuntu2+esm2"}]}],"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"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"mongodb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.6.10-0ubuntu1+esm2"}]}],"versions":["1:2.6.10-0ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"mongodb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.6.3-0ubuntu1.4+esm1"}]}],"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"]}],"products":[{"vendor":"mongodb","product":"mongodb"},{"vendor":"mongodb inc.","product":"mongodb server"},{"vendor":"mongodb, inc.","product":"mongodb server"}],"references":[{"url":"https://jira.mongodb.org/browse/SERVER-36993","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Vendor Advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20802"},{"url":"https://github.com/advisories/GHSA-g6mr-mvf4-4wvj"},{"url":"https://ubuntu.com/security/CVE-2018-20802","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20802","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8064-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2018-20802","title":"Post-auth queries on compound index may crash mongod","description":"A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries with compound indexes affecting QueryPlanner. This issue affects MongoDB Server v3.6 versions prior to 3.6.9 and MongoDB Server v4.0 versions prior to 4.0.3.","status":"published","published":"2020-11-23T15:15:18.509Z","modified":"2024-09-17T02:26:45.416Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"cna"}],"cwes":["CWE-394"],"updated_at":"2026-11-02T14:34:59.872731Z"}],"euvd":[{"id":"EUVD-2018-13344","description":"A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries with compound indexes affecting QueryPlanner. This issue affects MongoDB Server v3.6 versions prior to 3.6.9 and MongoDB Server v4.0 versions prior to 4.0.3.","status":"published","published":"2020-11-23T15:15:18Z","modified":"2024-09-17T02:26:45Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-03T00:28:40.410394Z"}],"ghsa":[{"id":"GHSA-g6mr-mvf4-4wvj","title":"A user authorized to perform database queries may trigger denial of service by issuing specially...","description":"A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries with compound indexes affecting QueryPlanner. This issue affects: MongoDB Inc. MongoDB Server v3.6 versions prior to 3.6.9, v4.0 versions prior to 4.0.3.","status":"published","published":"2022-05-24T17:34:47Z","modified":"2024-02-01T05:06:36Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-394"],"updated_at":"2026-11-02T14:55:31.245778Z"}],"nvd":[{"id":"CVE-2018-20802","description":"A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries with compound indexes affecting QueryPlanner. This issue affects MongoDB Server v3.6 versions prior to 3.6.9 and MongoDB Server v4.0 versions prior to 4.0.3.","status":"published","published":"2020-11-23T16:15:12.12Z","modified":"2026-06-17T01:53:30.3Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-394"],"updated_at":"2026-11-02T14:05:00.03074Z"}],"osv":[{"id":"CVE-2018-20802","description":"A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries with compound indexes affecting QueryPlanner. This issue affects MongoDB Server v3.6 versions prior to 3.6.9 and MongoDB Server v4.0 versions prior to 4.0.3.","status":"published","published":"2020-11-23T16:15:12.12Z","modified":"2026-10-24T14:20:15.844169789Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:09.145458Z"},{"id":"UBUNTU-CVE-2018-20802","description":"A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries with compound indexes affecting QueryPlanner. This issue affects MongoDB Server v3.6 versions prior to 3.6.9 and MongoDB Server v4.0 versions prior to 4.0.3.","status":"published","published":"2020-11-23T16:15:00Z","modified":"2026-02-28T05:29:52.706475Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:17.91743Z"},{"id":"USN-8064-1","title":"mongodb vulnerabilities","description":"Eliot Horowitz discovered that MongoDB may fail to validate some instances\nof malformed BSON. A remote attacker could possibly use this issue to cause\nMongoDB to crash, resulting in a denial of service. This issue only\naffected Ubuntu 14.04 LTS. (CVE-2015-1609)\n\nIt was discovered that MongoDB read raw permissions from .dbshell history\nfiles. A local attacker could possibly use this issue to obtain sensitive\ninformation. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04\nLTS. (CVE-2016-6494)\n\nTravis Brown discovered that MongoDB may be unable to parse specially\ncrafted UTF-8 strings in BSON requests. A remote attacker could possibly\nuse this issue to cause MongoDB to crash, resulting in a denial of service.\nThis issue only affected Ubuntu 18.04 LTS. (CVE-2018-20802)","status":"published","published":"2026-02-25T16:46:04Z","modified":"2026-06-25T13:32:31.584209738Z","updated_at":"2026-11-02T16:58:22.951676Z"}]}}
