LiveActive security incident?Get immediate response
CVE Record

CVE-2021-20333: Server log entry spoofing via newline injection

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.

MediumCVSS 5.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This issue lets a remote sender make MongoDB Server logs misleading by causing artificial or split log entries. It does not expose data or crash the service based on the CVSS vector, but it can weaken monitoring, audit trails, and incident investigations.

Executive priority

Prioritize remediation as a monitoring and audit integrity issue, not a data-theft emergency. Patch affected MongoDB servers during normal security maintenance, sooner for systems central to compliance or incident response.

Technical view

CVE-2021-20333 is CWE-117 improper output neutralization for logs. Specially crafted MongoDB commands can inject newline effects into server logs. Affected versions are MongoDB Server 3.6 before 3.6.20, 4.0 before 4.0.21, and 4.2 before 4.2.10.

Likely exposure

Exposure exists where MongoDB Server runs affected 3.6, 4.0, or 4.2 versions below the fixed release thresholds. Risk is higher when logs drive SIEM alerts, compliance evidence, or incident timelines.

Exploitation context

The CVE record gives a network-reachable, low-complexity, unauthenticated CVSS vector, but the source bundle does not cite active exploitation. KEV status is false, so active exploitation should not be assumed.

Researcher notes

Evidence supports log integrity impact only: CVSS C:N/I:L/A:N. The bundle does not provide exploit details, observed exploitation, or workaround guidance beyond fixed version boundaries. Avoid overstating impact beyond log spoofing or log splitting.

Mitigation direction

  • Upgrade MongoDB Server 3.6 to 3.6.20 or later.
  • Upgrade MongoDB Server 4.0 to 4.0.21 or later.
  • Upgrade MongoDB Server 4.2 to 4.2.10 or later.
  • Check MongoDB vendor guidance for supported remediation paths.
  • Treat vulnerable server logs cautiously during investigations.

Validation and detection

  • Inventory MongoDB Server versions across production and non-production.
  • Flag 3.6 versions earlier than 3.6.20.
  • Flag 4.0 versions earlier than 4.0.21.
  • Flag 4.2 versions earlier than 4.2.10.
  • Confirm SIEM parsing accounts for potentially malformed historical logs.
Prepared
Confidence
high
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-117: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-20333 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.3 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.3CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N3.91.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.3Medium
CVSS 3.1 vector shape for CVE-2021-20333Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
MongoDB Inc.MongoDB Server3.6, 4.0, 4.2unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-117 · source CWE mapping

Improper Output Neutralization for Logs

Improper Output Neutralization for Logs represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.