What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: MongoDB 4.0.25, 4.2.14, 4.4.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-20330 or the next vulnerability affects your stack