PT-2020-6062 · Npm+5 · Minimist+5

Published

2020-03-11

·

Updated

2022-04-22

·

CVE-2020-7598

CVSS v2.0

6.8

Medium

VectorAV:N/AC:M/Au:N/C:P/I:P/A:P
Name of the Vulnerable Software and Affected Versions minimist versions prior to 1.2.2 minimist versions prior to 0.2.1
Description The issue is related to the minimist library, which is vulnerable to prototype pollution. This occurs because arguments are not properly sanitized, allowing an attacker to modify the prototype of Object, resulting in the addition or modification of an existing property that will exist on all objects. For example, parsing the argument -- proto .y=Polluted adds a y property with value Polluted to all objects. The argument -- proto =Polluted raises an uncaught error and crashes the application. This is exploitable if attackers have control over the arguments being passed to minimist.
Recommendations For versions prior to 0.2.1, upgrade to version 0.2.1 or later. For versions prior to 1.2.2, upgrade to version 1.2.3 or later. As a temporary workaround, consider restricting the use of the minimist library until a patch is applied, especially in scenarios where argument control is limited.

Exploit

Fix

Prototype Pollution

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2020:2848
ALSA-2020:2852
AZL-44115
AZL-44310
BDU:2021-02868
CESA-2020_2848
CESA-2020_2852
CVE-2020-7598
GHSA-VH95-RMGR-6W4M
GHSA-XVCH-5GV4-984H
OESA-2021-1397
OPENSUSE-SU-2020:0802-1
OPENSUSE-SU-2020_0802-1
RHSA-2020:2362
RHSA-2020:2847
RHSA-2020:2848
RHSA-2020:2849
RHSA-2020:2852
RHSA-2020:2895
RHSA-2020:2992
RHSA-2020:3042
RHSA-2020:3084
RHSA-2020:3247
RHSA-2020_2848
RHSA-2020_2852
RLSA-2020:2848
RLSA-2020:2852
SNYK-JS-MINIMIST-559764
SUSE-RU-2020:1238-1
SUSE-SU-2020:1568-1
SUSE-SU-2020:1575-1
SUSE-SU-2020:1576-1
SUSE-SU-2020:1606-1
SUSE-SU-2020:1623-1
SUSE-SU-2020:2800-1
SUSE-SU-2020_1568-1
SUSE-SU-2020_1575-1
SUSE-SU-2020_1576-1
SUSE-SU-2020_1606-1
SUSE-SU-2020_1623-1

Affected Products

Almalinux
Centos
Red Hat
Rocky Linux
Suse
Minimist