CVE-2021-20330
Specific replication command with malformed oplog entries can crash secondaries
Reported by mongodb · Published December 15, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mongodb | Bitnami | 4.4.6, 4.2.14, 4.0.25 |
| mongodb | mongodb | 4.4.9, 4.4.6, 4.2.18, 4.2.14, 4.0.27, 4.0.25 |
| MongoDB Server | MongoDB Inc. | 4.4.9, 4.2.16, 4.0.27 |
| MongoDB Server | MongoDB | 4.4.6, 4.2.14, 4.0.25 |
| mongodb | Bitnami | 4.4.6, 4.2.14, 4.0.25 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc. | MongoDB Server | 4.0, 4.2, 4.4 |
| MongoDB Inc. | MongoDB Server | 4.0, 4.2, 4.4 |
| mongodb | mongodb | 4.0, 4.2, 4.4 |
Timeline
- Dec 15, 2021 CVE Published
- Dec 15, 2021 PoC Published (2 in total, the first dated here)
- Dec 16, 2021 EPSS Score (30 in total, the first dated here)
- Sep 16, 2024 CVE Updated
- Jun 1, 2026 Security Advisory
- Aug 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-20330
vulnetix vdb fixes CVE-2021-20330
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20330/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart