CVE-2020-24391 Remote code execution in mongo-express
Attackers can execute arbitrary code via unsafe handling of advanced syntax in the mongo-express web interface.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-24391?
CVE-2020-24391 is a critical code injection vulnerability in n/a, published on 30 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
mongo-express before 1.0.0 offers support for certain advanced syntax but implements this in an unsafe way. NOTE: this may overlap CVE-2019-10769.
Which versions are affected by CVE-2020-24391?
2 open source packages ship an affected version, including mongodb-query-parser. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mongodb-query-parser npm | All versions | 2.0.0 |
mongodb-query-parser npm | All versions | 2.0.0 |
Products include Mongo-Express Project Mongo-Express.
How do I fix CVE-2020-24391?
Upgrade mongodb-query-parser to 2.0.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2020-24391 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-24391 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in n/a
Sources
Also known as GHSA-hxmg-hm46-cf62.