CVE-2021-21315
JSON

7.1highExploited

Command Injection Vulnerability

Severity
7.1high CVSS:3.1 by GitHub_M
Exploit likelihood
90.7% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-2m8v-572m-ff2v

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.

Affected

Product or packageVersionsReported by
sebhildebrandt systeminformation< 5.3.1CVE List
systeminformation (npm)before 5.3.1GitHub Advisory Database
systeminformation systeminformationbefore 5.3.1NVD
apache cordova10.0.0NVD
Npm package System Information Library for Node.JSNot specifiedCISA KEV

All scores

GitHub_M7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
GitHub7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD4.6medium CVSS:2.0AV:L/AC:L/Au:N/C:P/I:P/A:P

Classification

CWE-78

SSVC (CISA-ADP): exploitation active, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

command injection vulnerability

Patches

Problem was fixed with a parameter check. Please upgrade to version >= 5.3.1

Workarounds

If you cannot upgrade, 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.

NVD (es)

La Biblioteca System Information para Node.JS (paquete npm "systeminformation") es una colección de funciones de código abierto para recuperar información detallada sobre el hardware, el sistema y el SO. En systeminformation versiones anteriores a 5.3.1, se presenta una vulnerabilidad de inyección de comandos. El problema se ha corregido en la versión 5.3.1. Como solución en lugar de actualizar, asegúrese de comprobar o sanear los parámetros de servicio que son pasados a las funciones si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() ... sólo permiten cadenas, rechazan cualquier matriz. El saneamiento de cadenas funciona como se esperaba

CISA KEV

In this vulnerability, an attacker can send a malicious payload that will exploit the name parameter. After successful exploitation, attackers can execute remote.

References

https://www.npmjs.com/package/systeminformationproduct, web
https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2vthird-party-advisory, web
https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525patch, web
https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05%40%3Cissues.cordova.apache.org%3Eissue-tracking, mailing-list, web
https://security.netapp.com/advisory/ntap-20210312-0007/third-party-advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21315government-resource, us-government-resource, web
https://nvd.nist.gov/vuln/detail/CVE-2021-21315advisory, kev
https://github.com/sebhildebrandt/systeminformationpackage
https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05@%3Cissues.cordova.apache.org%3Eweb
https://security.netapp.com/advisory/ntap-20210312-0007web

Sources

SourceRecordLicence
CVE ListCVE-2021-21315 changed 2025-10-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-2m8v-572m-ff2v changed 2026-07-08CC-BY-4.0
NVDCVE-2021-21315 changed 2026-06-17Public domain
CISA KEVCVE-2021-21315 changed 2022-01-18CC0-1.0