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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sebhildebrandt | systeminformation | < 5.3.1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 6 repositories
-
ForbiddenProgrammer/CVE-2021-21315-PoC ★ 158 · Mar 1, 2021
CVE 2021-21315 PoC
-
alikarimi999/CVE-2021-21315 ★ 4 · Sep 7, 2021
-
G01d3nW01f/CVE-2021-21315 ★ 1 · Nov 10, 2021
rust noob tried write easy exploit code with rust lang
-
jimahub/scenario-d-kev ★ 0 · Sep 28, 2026
Thesis scenario test (research only): Scenario D: KEV override path - systeminformation@5.3.0 CVE-2021-21315
-
xMohamed0/CVE-2021-21315-POC ★ 0 · Nov 14, 2021
-
MazX0p/CVE-2021-21315-exploit ★ 0 · Jul 18, 2021
systeminformation
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Node.JS System Information Library <5.3.1 - Remote Command Injection http/cves/2021/CVE-2021-21315.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | systeminformation | < 5.3.1 | 5.3.1 | GHSA-2m8v-572m-ff2v |
References
- https://www.npmjs.com/package/systeminformation
- https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2v
- https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525
- [cordova-issues] 20210224 [GitHub] [cordova-cli] iva2k opened a new issue #549: update systeminformation package to >=5.3.1 mailing-list
- https://security.netapp.com/advisory/ntap-20210312-0007/