PoC Monitor
← All CVEs
CVE-2021-21315published 16 Feb 2021 17:00 UTCData: JSON · API

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.

First public PoC 151 daysafter publication · 18 Jul 2021
Public PoCs76 on GitHub · 1 Exploit-DB, Metasploit or nuclei · +1 suspicious, not counted
CVSS7.1high · scored by CNA · CWE-78
CISA KEV 18 Jan 2022336 days after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

systeminformation (npm)
  • < 5.3.1

Fixed in 5.3.1

from GitHub Security Advisory GHSA-2m8v-572m-ff2v

Mitigation

Upgrade systeminformation to 5.3.1 or later.

Timeline

Days relative to CVE publication
t=0+60+120+180+240+300CVE published16 Feb 2021 · t = 0First public PoC18 Jul 2021 · t+151dAdded to CISA KEV18 Jan 2022 · t+336d

First 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
RepositoryCreatedStarsAssessment
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
  • owner account created less than 7 days before the repo

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
  • owner account created less than 7 days before the repo

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
  • owner account created less than 7 days before the repo

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
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

Suspicious or fake 2
RepositoryCreatedStarsAssessment
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
  • pipes a download into a shell / encoded PowerShell in .github/workflows/devsecops.yml
  • contains archives (feeds/epss.csv.gz)

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.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Node.JS System Information Library <5.3.1 - Remote Command Injection27 Apr 202314 Nov 2026

PoC characteristics

What to hunt for in your logs · from 6 PoC repos

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /
(?i)^/\?(?:.*&)?\{var\}\[\]=\$\(echo '\{var\}' \| base64 -d \| bash\)

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /
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.

GET /
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