CVE Catalog

Actively exploited in the wild

System Information Library for Node.JS Command Injection

Npm package - System Information Library for Node.JS · Listed in the CISA KEV since 2022-01-18. This indicates confirmed attacks in production environments.

Required action: Apply updates per vendor instructions.

CVE-2021-21315

HighCVSS 7.1KEV
Published: Updated: Translated: NVD NIST

Summary

The systeminformation library for Node.js before version 5.3.1 contains a command injection vulnerability. The issue was fixed in version 5.3.1.

Risk Assessment

An attacker could execute arbitrary system commands, potentially leading to application or server compromise.

Recommendation

Update the systeminformation package to version 5.3.1 or later. As a workaround, check or sanitize service parameters passed to functions such as si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() – only allow strings, reject arrays.

Other vulnerabilities in systeminformation

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS