GHSA-mh5c-679w-hh4r Denial of Service in mongodb

Not scored Published

An attacker can crash the application by sending an invalid collection name to a non-existent database, causing a denial of service.

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

What is GHSA-mh5c-679w-hh4r?

GHSA-mh5c-679w-hh4r is a denial of service vulnerability in mongodb, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of mongodb prior to 3.1.13 are vulnerable to Denial of Service. The package fails to properly catch an exception when a collection name is invalid and the DB does not exist, crashing the application.

Recommendation

Upgrade to version 3.1.13 or later.

Which versions are affected by GHSA-mh5c-679w-hh4r?

2 open source packages ship an affected version, including mongodb.

PackageAffectedFixed in
mongodb npmAll versions3.1.13
mongodb npmAll versions3.1.13

How do I fix GHSA-mh5c-679w-hh4r?

Upgrade mongodb to 3.1.13 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is GHSA-mh5c-679w-hh4r being exploited?

There is no known exploitation of GHSA-mh5c-679w-hh4r in the wild and no public exploit code.

Sources

Is GHSA-mh5c-679w-hh4r in your software?

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

Check your SBOMs for free