Sebhildebrandt systeminformation
Command 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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
Mitigation
Upgrade systeminformation to 5.3.1 or later.
Timeline
Days relative to CVE publicationFirst public PoC 151 days after publication; added to CISA KEV 336 days after publication. First PoC: MazX0p/CVE-2021-21315-exploit (created 18 Jul 2021, found by us: backfilled).
PoC repositories
Found on GitHub.6 PoCs · 2 suspicious or fake
PoCs 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| MazX0p/CVE-2021-21315-exploit | 18 Jul 2021 +151 d | 0 | PoC |
| alikarimi999/CVE-2021-21315 | 7 Sep 2021 +203 d | 4 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| thelostvoice/inept-us-military | 11 Oct 2021 +237 d | 1 | PoC via PoC Index
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| thelostvoice/global-takeover | 11 Oct 2021 +237 d | 2 | PoC via PoC Index
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| G01d3nW01f/CVE-2021-21315 | 10 Nov 2021 +267 d | 1 | PoC |
| xMohamed0/CVE-2021-21315-POC | 14 Nov 2021 +271 d | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ForbiddenProgrammer/CVE-2021-21315-PoC | 1 Mar 2021 +13 d | 158 | Fake |
| jimahub/scenario-d-kev | 28 Sep 2026 +5.6 y | 0 | Suspicious · score 75
Why suspicious
|
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Node.JS System Information Library <5.3.1 - Remote Command Injection | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 6 PoC reposGET /
- Query
{var}[]=$(echo '{var}' | base64 -d | bash)- Seen in
- 1 repo: G01d3nW01f/CVE-2021-21315
- Evidence
- G01d3nW01f/CVE-2021-21315/src/main.rs:71 G01d3nW01f/CVE-2021-21315/src/main.rs:77-85 G01d3nW01f/CVE-2021-21315/README.md:18-20
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/\?(?:.*&)?\{var\}\[\]=\$\(echo '\{var\}' \| base64 -d \| bash\)
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21315 sebhildebrandt systeminformation exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"{var}[]=$(echo '{var}' |7c| base64 -d |7c| bash)"; reference:url,poc.griffinguard.io/cve/CVE-2021-21315; classtype:web-application-attack; sid:9061757; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: sebhildebrandt systeminformation exploit attempt (CVE-2021-21315)
id: gg-pocmon-cve-2021-21315-9061757
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21315. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-21315
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-query|contains|all:
- '{var}[]=$(echo ''{var}'' | base64 -d | bash)'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2021.21315