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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-07-23 · Modified: 2024-09-17
- Aliases: UBUNTU-CVE-2021-20333
- Record: https://cvemate.com/vulnerability/CVE-2021-20333 · JSON: https://cvemate.com/vulnerability/CVE-2021-20333/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 1.3%, percentile 71.423%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- ubuntu mongodb (Ubuntu): All versions (No fix recorded)
- mongodb inc mongodb server: ≥ 3.6, \< 3.6.20 \| ≥ 4.0, \< 4.0.21 \| ≥ 4.2, \< 4.2.10
- mongodb mongodb: ≥ 3.6.0, \< 3.6.20 \| ≥ 4.0.0, \< 4.0.21 \| ≥ 4.2.0, \< 4.2.10

## References

- <https://jira.mongodb.org/browse/SERVER-50605>
- <https://ubuntu.com/security/CVE-2021-20333>
- <https://www.cve.org/CVERecord?id=CVE-2021-20333>

---

Data as of 2026-12-05T13:50:54.785Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
