MongoDB mongo-express Remote Code Execution Vulnerability. Actively exploited: CISA added this vulnerability to its Known Exploited Vulnerabilities catalog on 10/12/2021. Patch affected systems as an emergency.
| Package | Affected versions | Patched versions |
|---|---|---|
| mongo-express | < 0.54.0 | 0.54.0 |
| mongo-express | < 0.54.0 | 0.54.0 |
Remote code execution on the host machine by any authenticated user.
Launching mongo-express on a Mac, pasting the following into the "create index" field will pop open the Mac calculator:
this.constructor.constructor("return process")().mainModule.require('child_process').execSync('/Applications/Calculator.app/Contents/MacOS/Calculator')
Users should upgrade to version 0.54.0
Is there a way for users to fix or remediate the vulnerability without upgrading?
If you have any questions or comments about this advisory:
@JLLeitschuh for finding and reporting this vulnerability
This vulnerability has been exploited in the wild.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free