VDB

CVE-2021-20330

CVE-2021-20330 PUBLISHED CVSS 6.5 MEDIUM

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.

PackageEcosystemFixed in
mongodbBitnami4.4.6, 4.2.14, 4.0.25
mongodbmongodb4.4.9, 4.4.6, 4.2.18, 4.2.14, 4.0.27, 4.0.25
MongoDB ServerMongoDB Inc.4.4.9, 4.2.16, 4.0.27
MongoDB ServerMongoDB4.4.6, 4.2.14, 4.0.25
mongodbBitnami4.4.6, 4.2.14, 4.0.25

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
MongoDB Inc.MongoDB Server4.0, 4.2, 4.4
MongoDB Inc.MongoDB Server4.0, 4.2, 4.4
mongodbmongodb4.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

References

  • x_refsource_MISC
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›