CVE-2021-20330
JSON

6.5medium

Specific replication command with malformed oplog entries can crash secondaries

Severity
6.5medium CVSS:3.1 by mongodb
Exploit likelihood
1.08% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mongodb
Also known as
BIT-MONGODB-2021-20330

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

Product or packageVersionsReported by
MongoDB Inc. MongoDB Serverfrom 4.0 before 4.0.27, from 4.2 before 4.2.16, from 4.4 before 4.4.9CVE List
mongodb mongodbfrom 4.0 before 4.0.27, from 4.2 before 4.2.18, from 4.4 before 4.4.9, from 4.0.0 before 4.0.25, from 4.2.0 before 4.2.14, from 4.4.0 before 4.4.6CVE List, NVD
mongodb (Bitnami)from 4.0.0 before 4.0.25, from 4.2.0 before 4.2.14, from 4.4.0 before 4.4.6Bitnami Vulnerability Database

All scores

mongodb6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:N/I:N/A:P
Bitnami Vulnerability Databasemedium rating

Classification

CWE-20

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Un atacante con permisos CRUD básicos en una colección replicada puede ejecutar el comando applyOps con entradas oplog especialmente malformadas, resultando en una potencial denegación de servicio en los secundarios. Este problema afecta a las versiones de MongoDB Server v4.0 anteriores a 4.0.25; a las versiones de MongoDB Server v4.2 anteriores a 4.2.14; a las versiones de MongoDB Server v4.4 anteriores a 4.4.6

References

Sources

SourceRecordLicence
CVE ListCVE-2021-20330 changed 2024-09-16CVE Terms of Use
NVDCVE-2021-20330 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-MONGODB-2021-20330 changed 2026-09-08Apache-2.0