# CVE-2021-20330: Specific replication command with malformed oplog entries can crash secondaries

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-12-15 · Modified: 2024-09-16
- Aliases: UBUNTU-CVE-2021-20330
- Record: https://cvemate.com/vulnerability/CVE-2021-20330 · JSON: https://cvemate.com/vulnerability/CVE-2021-20330/json

## Description

```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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.08%, percentile 66.254%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu mongodb (Ubuntu): All versions (No fix recorded)
- mongodb inc mongodb server: ≥ 4.0, \< 4.0.27 \| ≥ 4.2, \< 4.2.16 \| ≥ 4.4, \< 4.4.9
- mongodb mongodb: ≥ 4.0.0, \< 4.0.25 \| ≥ 4.2.0, \< 4.2.14 \| ≥ 4.4.0, \< 4.4.6

## References

- <https://jira.mongodb.org/browse/SERVER-36263>
- <https://ubuntu.com/security/CVE-2021-20330>
- <https://www.cve.org/CVERecord?id=CVE-2021-20330>

---

Data as of 2026-12-05T13:42:42.937Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
