Mongo-Express < 0.54.0 RCE

critical Nessus Plugin ID 194908

Synopsis

The remote host is affected by a remote code execution vulnerability.

Description

The version of the mongo-express Node.js module installed on the remote host is prior to 0.54.0. It is, therefore, affected by a remote code execution vulnerability via endpoints that use the 'toBSON' method. A misuse of the `vm` dependency allows performing 'exec' commands in a non-safe environment.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the mongo-express node module to version 0.54.0 or later.

See Also

http://www.nessus.org/u?317e39ff

Plugin Details

Severity: Critical

ID: 194908

File Name: mongo_express_CVE-2019-10758.nasl

Version: 1.3

Type: local

Family: Misc.

Published: 5/2/2024

Updated: 10/7/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 8.1

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2019-10758

CVSS v3

Risk Factor: Critical

Base Score: 9.9

Temporal Score: 9.2

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

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:mongo-express_project:mongo-express

Required KB Items: Host/nodejs/modules/enumerated

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/24/2019

Vulnerability Publication Date: 12/30/2019

CISA Known Exploited Vulnerability Due Dates: 6/10/2022

Reference Information

CVE: CVE-2019-10758