Rapid7 Vulnerability & Exploit Database

npm systeminformation package: CVE-2021-21315: Command Injection Vulnerability

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

npm systeminformation package: CVE-2021-21315: Command Injection Vulnerability

Severity
9
CVSS
(AV:L/AC:L/Au:N/C:P/I:P/A:P)
Published
02/14/2021
Created
03/09/2022
Added
03/07/2022
Modified
05/03/2022

Description

The System Information Library for Node.JS (npm package "systeminformation") is an open source collection of functions to retrieve detailed hardware, system and OS information. In systeminformation before version 5.3.1 there is a command injection vulnerability. Problem was fixed in version 5.3.1. As a workaround instead of upgrading, be sure to check or sanitize service parameters that are passed to si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() ... do only allow strings, reject any arrays. String sanitation works as expected.

Solution(s)

  • npm-systeminformation-package-upgrade-latest

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;