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

Medium 5.3 Published Updated

Attackers can spoof or split server log entries by sending crafted commands, compromising audit integrity in MongoDB Server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-20333?

CVE-2021-20333 is a medium-severity vulnerability in Mongodb Mongodb, published on 23 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-116, CWE-117

Which versions are affected by CVE-2021-20333?

1 open source package ship an affected version, including mongodb. It affects 1 product.

PackageAffectedFixed in
mongodb BitnamiFrom 3.6.03.6.20, 4.0.21, 4.2.10

Products include Mongodb Mongodb.

How do I fix CVE-2021-20333?

Upgrade mongodb to a fixed version for your release line: 3.6.20, 4.0.21 or 4.2.10.

Is CVE-2021-20333 being exploited?

There is no known exploitation of CVE-2021-20333 in the wild and no public exploit code.

All Mongodb Mongodb vulnerabilities

Sources

Also known as BIT-mongodb-2021-20333, GHSA-ghvr-mww9-3hrg, UBUNTU-CVE-2021-20333.

Is CVE-2021-20333 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free