global-modules-path up to 2.x getPath command injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.3 | $0-$5k | 0.00 |
Summary
A vulnerability classified as critical has been found in global-modules-path up to 2.x. This affects the function getPath. Performing a manipulation results in command injection.
This vulnerability is cataloged as CVE-2022-21191. The attack must be initiated from a local position. There is no exploit available.
It is recommended to upgrade the affected component.
Details
A vulnerability classified as critical has been found in global-modules-path up to 2.x. This affects the function getPath. The manipulation with an unknown input leads to a command injection vulnerability. CWE is classifying the issue as CWE-77. The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:
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.
The weakness was shared 01/13/2023 as edbdaff077ea0cf295b1469923c06bbccad3c180. It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2022-21191 since 02/24/2022. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1202 according to MITRE ATT&CK.
Upgrading to version 3.0.0 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch edbdaff077ea0cf295b1469923c06bbccad3c180 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.4VulDB Meta Temp Score: 7.3
VulDB Base Score: 4.9
VulDB Temp Score: 4.7
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
NVD Vector: 🔍
CNA Base Score: 7.4
CNA Vector (Snyk): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Command injectionCWE: CWE-77 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: global-modules-path 3.0.0
Patch: edbdaff077ea0cf295b1469923c06bbccad3c180
Timeline
02/24/2022 🔍01/13/2023 🔍
01/13/2023 🔍
04/04/2025 🔍
Sources
Advisory: edbdaff077ea0cf295b1469923c06bbccad3c180Status: Confirmed
CVE: CVE-2022-21191 (🔍)
GCVE (CVE): GCVE-0-2022-21191
GCVE (VulDB): GCVE-100-218259
Entry
Created: 01/13/2023 10:10Updated: 04/04/2025 20:21
Changes: 01/13/2023 10:10 (53), 02/05/2023 16:38 (11), 04/04/2025 20:21 (16)
Complete: 🔍
Cache ID: 216::103
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.