{"id":"CVE-2021-21315","aliases":["CVE-2021-21315","GHSA-2m8v-572m-ff2v"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection Vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\ncommand injection vulnerability\n\n### Patches\nProblem was fixed with a parameter check. Please upgrade to version >= 5.3.1\n\n### Workarounds\nIf 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"},{"lang":"en","text":"In this vulnerability, an attacker can send a malicious payload that will exploit the name parameter. After successful exploitation, attackers can execute remote.","source":"kev"}],"published":"2021-02-16T16:51:04.000Z","modified":"2026-07-08T06:29:36.391Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 5.3.1","status":"affected"}],"vendor":"sebhildebrandt","product":"systeminformation","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.3.1"}],"ecosystem":"npm","package":"systeminformation","purl":"pkg:npm/systeminformation","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.3.1"}],"vendor":"systeminformation","product":"systeminformation","cpe":"cpe:2.3:a:systeminformation:systeminformation:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0.0"}],"vendor":"apache","product":"cordova","cpe":"cpe:2.3:a:apache:cordova:10.0.0:*:*:*:*:-:*:*","source":"nvd"},{"ranges":[],"vendor":"Npm package","product":"System Information Library for Node.JS","source":"kev"}],"references":[{"url":"https://www.npmjs.com/package/systeminformation","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2v","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05%40%3Cissues.cordova.apache.org%3E","tags":["issue-tracking","mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210312-0007/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21315","tags":["government-resource","us-government-resource","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21315","tags":["advisory","kev"],"sources":["ghsa","kev"]},{"url":"https://github.com/sebhildebrandt/systeminformation","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05@%3Cissues.cordova.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210312-0007","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","kev":{"dateAdded":"2022-01-18","dueDate":"2022-02-01","name":"System Information Library for Node.JS Command Injection","requiredAction":"Apply updates per vendor instructions.","ransomware":false,"notes":"https://nvd.nist.gov/vuln/detail/CVE-2021-21315"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"no","technicalImpact":"partial","date":"2025-02-06T19:38:40.650Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21315","url":"https://www.cve.org/CVERecord?id=CVE-2021-21315","licence":"CVE Terms of Use","modified":"2025-10-21T23:35:26.173Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2m8v-572m-ff2v","url":"https://github.com/advisories/GHSA-2m8v-572m-ff2v","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:36.391Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21315","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21315","licence":"Public domain","modified":"2026-06-17T03:35:16.700Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2021-21315","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2021-21315","licence":"CC0-1.0","modified":"2022-01-18T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:57:59.959Z","epss":{"score":0.90675,"percentile":0.99802,"date":"2026-12-01T12:00:22.000Z"}}