CVE-2021-20333: mongodb inc mongodb server Improper Output Neutralization for Logs
Vulnerability summary
CVE-2021-20333 is a medium (CVSS 5.3) Improper Output Neutralization for Logs vulnerability in mongodb inc mongodb server. EPSS estimates a 1.30% chance of exploitation in the next 30 days, higher than 69.9% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 23-07-2021PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
1.30%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
+0.03 pp
From 1.27% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (jira.mongodb.org)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-117Improper Output Neutralization for LogsThe product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.
- CWE-116Improper Encoding or Escaping of OutputThe product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
Affected systems
Mongodb1 product
- mongodb≥ 3.6.0, < 3.6.20 | ≥ 4.0.0, < 4.0.21 | ≥ 4.2.0, < 4.2.10
Mongodb inc1 product
- mongodb server≥ 3.6, < 3.6.20 | ≥ 4.0, < 4.0.21 | ≥ 4.2, < 4.2.10
Ubuntu1 product
- mongodbAll versions (No fix recorded)
3 vendors · 3 products