CVE-2021-20330
published medium CVSS 3.1 · 6.5Specific replication command with malformed oplog entries can crash secondaries
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc. | — | MongoDB Server4.0 to < 4.0.27 · 4.2 to < 4.2.16 · 4.4 to < 4.4.9 · Other versions: unaffected | Affected | Not stated | mongodb |
| mongodb | — | mongodb4.0 to < 4.0.27 · 4.2 to < 4.2.18 · 4.4 to < 4.4.9 · Other versions: unknown | Affected | Not stated | CISA-ADP |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc. | MongoDB Server | 4.0 to < 4.0.27 (affected · custom)4.2 to < 4.2.16 (affected · custom)4.4 to < 4.4.9 (affected · custom)Default: unaffected | mongodb · cna |
| mongodb | mongodb | 4.0 to < 4.0.27 (affected · custom)4.2 to < 4.2.18 (affected · custom)4.4 to < 4.4.9 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-20 CWE-20 Improper Input Validation
References
1Provider assertions
3mongodb · cna
Specific replication command with malformed oplog entries can crash secondaries
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 43999fce4953d47dd9ba95d5d24658728507af6e76c4f08372f8069b379624be
- Ingested
- 23 Sep 2026, 07:52:16 UTC
- Source record
- Official CVE record