CVE-2019-10758KEV · OVERDUE

MongoDB mongo-express Remote Code Execution Vulnerability

Critical · published December 24, 2019

Patch now

Confirmed exploited, and the score agrees

CVSS calls it critical at 9.9. It is confirmed in active exploitation. It sits in the 99.7th percentile for exploit probability.

1596
days past CISA
deadline
CVSS v3.1
9.9
EPSS
85%
Percentile
99.7
In the wild
Confirmed
What it is

🚨 A crafty misuse of the `vm` dependency opens the door to Remote Code Execution in mongo-express versions before 0.54.0! 🔥 Think of this vulnerability as a chef in a restaurant using a recipe book filled with dangerous instructions; if they mistakenly follow a harmful command, they could turn the kitchen into chaos! Here, the `toBSON` method is like a faulty instruction leading to a recipe for disaster. An attacker could remotely run arbitrary commands on your server, potentially compromising sensitive data, altering configurations, or even shutting down services entirely. This is absolutely devastating for anyone relying on mongo-express, as the fallout could be severe. Your entire application could be turned inside out!

Put simply

Think of this vulnerability as a chef in a restaurant using a recipe book filled with dangerous instructions; if they mistakenly follow a harmful command, they could turn the kitchen into chaos! Here, the `toBSON` method is like a faulty instruction leading to a recipe for disaster. This vulnerability arises from improper use of the `vm` dependency, allowing attackers to execute unauthorized commands through the `toBSON` method in mongo-express, which is executed in a non-secure environment without necessary restrictions.

What to do

An attacker could remotely run arbitrary commands on your server, potentially compromising sensitive data, altering configurations, or even shutting down services entirely. This is absolutely devastating for anyone relying on mongo-express, as the fallout could be severe. Your entire application could be turned inside out! Immediately upgrade mongo-express to version 0.54.0 or later to patch this vulnerability. Review your application configurations to ensure they can’t execute arbitrary code, and consider implementing additional security layers like firewall rules to limit exposure. 🔒 You've got this! By following these steps, you can secure your environment and protect your applications. 🛡️

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.84726 · 99.7th percentile
Published
2019-12-24T21:08Z
KEV added
2021-12-10 · due 2022-06-10
EPSS history
Timeline
  • 10 DEC 00:00Z
    Added to CISA KEV — remediate by Jun 10
    kev
  • 24 DEC 21:08Z
    mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method
    cvelistv5