CVE-2021-23348: Arbitrary Command Injection in portprocesses
Summary
CVE-2021-23348: Arbitrary Command Injection in portprocesses. Affects portprocesses versions < 1.0.5. Fixed in 1.0.5. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The portprocesses package is an npm package that provides functionality for managing and interacting with processes running on specific ports. It allows users to perform actions such as killing processes running on a specific port. The package is vulnerable to an Arbitrary Command Injection vulnerability in versions <= 1.0.4.
Vulnerability Detail
The Arbitrary Command Injection vulnerability in portprocesses allows an attacker to execute arbitrary commands on the host system by injecting malicious commands into the killProcess function. This can lead to unauthorized access, data leakage, or even complete compromise of the host system. The vulnerability has a CVSS score of 6.4, indicating a moderate severity level.
How To Fix
Minimum fixed version
1.0.5
This is the first release that contains the fix.
npm install portprocesses@1.0.5
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of the portprocesses package as soon as possible.
Conclusion
The portprocesses package is vulnerable to an Arbitrary Command Injection vulnerability in versions <= 1.0.4. Users should upgrade to version 1.0.5 or later to fix the vulnerability. There are no known workarounds for this issue. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for portprocesses →
FAQ
The vulnerability allows an attacker to execute arbitrary commands on the host system, potentially leading to unauthorized access, data leakage, or complete compromise of the system.
Versions <= 1.0.4 of the portprocesses package are affected by this vulnerability.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and the tool will alert you if the vulnerability is present.
Yes, a fix is available in version 1.0.5 of the portprocesses package. It is recommended to upgrade to this version to mitigate the vulnerability.
There are no known workarounds for this vulnerability. It is recommended to upgrade to the fixed version of the portprocesses package.