CVE-2021-21315
HIGH 7.8CVSS 3.1known exploitedCommand Injection Vulnerability
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.
- Published
- 16 Feb 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-2m8v-572m-ff2v
- Sources
- NVDJSONCISA KEVJSONOSV GHSA-2m8v-572m-ff2vJSON
In CISA's Known Exploited Vulnerabilities catalog since 18 Jan 2022; US federal agencies must fix it by 1 Feb 2022.
Apply updates per vendor instructions.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | systeminformation | systeminformationcpe:2.3:a:systeminformation:systeminformation:*:*:*:*:*:node.js:*:* |
< 5.3.1 | 5.3.1 |
| NVD | apache | cordovacpe:2.3:a:apache:cordova:10.0.0:*:*:*:*:-:*:* |
= 10.0.0 | |
| OSV | npm | systeminformation | < 5.3.1 | 5.3.1 |
References
- https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525 · Patch, WEB
- https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2v · Third Party Advisory, WEB
- https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05%40%3Cissues.cordova.apache.org%3E · Issue Tracking, Mailing List, WEB
- https://security.netapp.com/advisory/ntap-20210312-0007/ · Third Party Advisory, WEB
- https://www.npmjs.com/package/systeminformation · Product, WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21315 · US Government Resource, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21315 · ADVISORY
- https://github.com/sebhildebrandt/systeminformation · PACKAGE
- https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05@%3Cissues.cordova.apache.org%3E · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 16 Feb 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 16 Feb 2021)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 18 Jan 2022)
- 18 Jan 2022 00:00 UTC · Listed as known exploited