CVE-2021-20333

Server log entry spoofing via newline injection

MEDIUM
5.3
CVSS Score
Published: July 23, 2021 at 11:25 AM UTC
Updated: June 17, 2026 at 03:33 AM UTC
1 product affected across 1 vendorMongoDB

Using MongoDB Server by MongoDB Inc.?

Get instant alerts when new vulnerabilities affect MongoDB Server - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.6 ≤ v < 3.6.203.6.0 ≤ v < 3.6.204.0 ≤ v < 4.0.214.0.0 ≤ v < 4.0.214.2 ≤ v < 4.2.104.2.0 ≤ v < 4.2.103.64.04.2
Affected range stops below 3.6.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.0.21, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.2.10, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

x_refsource_MISCExploitPatchVendor Advisory
https://jira.mongodb.org/browse/SERVER-50605

CVSS

5.3MEDIUMmongodb
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-117CWE-116

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card