{"id":"CVE-2021-20330","aliases":["CVE-2021-20330","BIT-MONGODB-2021-20330"],"related":[],"kind":"vulnerability","state":"published","title":"Specific replication command with malformed oplog entries can crash secondaries","summary":"An attacker with basic CRUD permissions on a replicated collection can run the applyOps command with specially malformed oplog entries, resulting in a potential denial of service on secondaries. This issue affects MongoDB Server v4.0 versions prior to 4.0.27; MongoDB Server v4.2 versions prior to 4.2.16; MongoDB Server v4.4 versions prior to 4.4.9.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An attacker with basic CRUD permissions on a replicated collection can run the applyOps command with specially malformed oplog entries, resulting in a potential denial of service on secondaries. This issue affects MongoDB Server v4.0 versions prior to 4.0.27; MongoDB Server v4.2 versions prior to 4.2.16; MongoDB Server v4.4 versions prior to 4.4.9.","source":"cvelist"},{"lang":"es","text":"Un atacante con permisos CRUD básicos en una colección replicada puede ejecutar el comando applyOps con entradas oplog especialmente malformadas, resultando en una potencial denegación de servicio en los secundarios. Este problema afecta a las versiones de MongoDB Server v4.0 anteriores a 4.0.25; a las versiones de MongoDB Server v4.2 anteriores a 4.2.14; a las versiones de MongoDB Server v4.4 anteriores a 4.4.6","source":"nvd"}],"published":"2021-12-15T12:30:10.405Z","modified":"2026-09-08T08:46:34.685Z","severity":{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","score":4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"custom","introduced":"4.0","fixed":"4.0.27","status":"affected"},{"type":"custom","introduced":"4.2","fixed":"4.2.16","status":"affected"},{"type":"custom","introduced":"4.4","fixed":"4.4.9","status":"affected"}],"vendor":"MongoDB Inc.","product":"MongoDB Server","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"4.0","fixed":"4.0.27","status":"affected"},{"type":"custom","introduced":"4.2","fixed":"4.2.18","status":"affected"},{"type":"custom","introduced":"4.4","fixed":"4.4.9","status":"affected"}],"vendor":"mongodb","product":"mongodb","cpe":"cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.0.25"},{"status":"affected","introduced":"4.2.0","fixed":"4.2.14"},{"status":"affected","introduced":"4.4.0","fixed":"4.4.6"}],"vendor":"mongodb","product":"mongodb","cpe":"cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.25"},{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.14"},{"type":"semver","introduced":"4.4.0","status":"affected","fixed":"4.4.6"}],"ecosystem":"Bitnami","package":"mongodb","purl":"pkg:bitnami/mongodb","source":"bitnami"}],"references":[{"url":"https://jira.mongodb.org/browse/SERVER-36263","tags":["advisory","issue-tracking","patch","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20330","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"mongodb","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-01-23T21:25:43.265Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20330","url":"https://www.cve.org/CVERecord?id=CVE-2021-20330","licence":"CVE Terms of Use","modified":"2024-09-16T17:23:58.888Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20330","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20330","licence":"Public domain","modified":"2026-06-17T03:33:41.200Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MONGODB-2021-20330","url":"https://osv.dev/vulnerability/BIT-MONGODB-2021-20330","licence":"Apache-2.0","modified":"2026-09-08T08:46:34.685Z"}],"updatedAt":"2026-11-25T22:58:05.988Z","epss":{"score":0.0108,"percentile":0.66085,"date":"2026-12-01T12:00:22.000Z"}}