CVE-2021-20333
Server log entry spoofing via newline injection
Reported by mongodb · Published July 23, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mongodb | Bitnami | 4.2.10, 4.0.21, 3.6.20 |
| MongoDB Server | MongoDB | 4.2.10, 4.0.21, 3.6.20 |
| mongodb | Bitnami | 4.2.10, 4.0.21, 3.6.20 |
| mongodb | mongodb | 4.2.10, 4.0.21, 3.6.20 |
| MongoDB Server | MongoDB Inc. | 4.2.10, 4.0.21, 3.6.20 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc. | MongoDB Server | 3.6, 4.0, 4.2 |
| MongoDB Inc. | MongoDB Server | 3.6, 4.0, 4.2 |
Timeline
- Jul 23, 2021 CVE Published
- Jul 23, 2021 PoC Published (2 in total, the first dated here)
- Jul 24, 2021 EPSS Score (30 in total, the first dated here)
- Jun 1, 2026 Security Advisory
- Aug 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-20333
vulnetix vdb fixes CVE-2021-20333
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20333/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart