Skip to main content
No exploitation reportedFix available

CVE-2021-20333

No exploitation reported by the sources we read.

  • Published2021-07-23
  • Fixed in4.2.10 · 4.0.21 · 3.6.20
  • WeaknessCWE-116 · CWE-117

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Sending specially crafted commands to a MongoDB Server may result in artificial log entries being generated or for log entries to be split. This issue affects MongoDB Server v3.6 versions prior to 3.6.20; MongoDB Server v4.0 versions prior to 4.0.21 and MongoDB Server v4.2 versions prior to 4.2.10.

Timeline

dates in UTC
  1. 2021-07-2312:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-20333?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-20333?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · OSV
MongoDB
BranchAffectedFixed in
4.2≥ 4.2.0, < 4.2.104.2.10
4.0≥ 4.0.0, < 4.0.214.0.21
3.6≥ 3.6.0, < 3.6.203.6.20

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Vendor advisories

  • CVE-2021-20333 Red Hat Product Security7 known affected

    mongodb: server log entry spoofing via newline injection

    mongodb as a component of Red Hat OpenStack Platform 10 (Newton) · mongodb-server as a component of Red Hat OpenStack Platform 10 (Newton) · rh-mongodb36-mongodb as a component of Red Hat Software Collections · +4 more

  • ICSA-26-218-01 CISA1 known affected

    ABB Ability Zenon

    IIoT services with MongoDB 4.2 installed on ABB Ability Zenon /all

Full record on NVD

Fix

  1. Update MongoDB to 4.2.10 · 4.0.21 · 3.6.20
  2. Mitigation from the vendor CISA ICSA-26-218-01 · 1 productABB recommends the following mitigation measures: - Replace bundled MongoDB with a supported version if IIoT services are required: - Where IIoT functionality is required, the bundled MongoDB instance can be replaced with a supported and patched version through manual configuration. - The follo…
  3. No fix planned, says the vendor Red Hat Product Security CVE-2021-20333 · 7 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

  • CNACVSS 3.15.3read 2026-10-23
  • NVDCVSS 3.15.3read 2026-10-23
  • NVDCVSS 2.05read 2026-10-23
  • CNAweakness (CWE)CWE-117read 2026-10-23
  • NVDweakness (CWE)CWE-116read 2026-10-23
  • FIRST EPSSEPSS score1.3 %2026-10-23
  • OSVaffected packages—

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Published
2021-07-23
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is CVE-2021-20333?

Sending specially crafted commands to a MongoDB Server may result in artificial log entries being generated or for log entries to be split. This issue affects MongoDB Server v3.6 versions prior to 3.6.20; MongoDB Server v4.0 versions prior to 4.0.21 and MongoDB Server v4.2 versions prior to 4.2.10.

Is CVE-2021-20333 actively exploited?

Active exploitation of CVE-2021-20333 has not been confirmed. Its EPSS score was 1.3% on 2026-10-23, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-20333?

CVE-2021-20333 has a CVSS v3 base score of 5.3 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.

Running MongoDB? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month