Vulnerability · Published Jan 13, 2023 · Assigned by snyk

CVE-2022-21191

High 7.4

In plain English

A high-severity OS command injection in global-modules-path. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)1.5%top 24.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Versions of the package global-modules-path before 3.0.0 are vulnerable to Command Injection due to missing input sanitization or other checks and sandboxes being employed to the getPath function.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmglobal-modules-path3.0.0GHSA-vvj3-85vf-fgmw

Affected products (as reported)

VendorProductVersions
n/a global-modules-path 0 – before 3.0.0

Weakness: CWE-78, CWE-77 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P

References