{
  "id": "CVE-2021-21315",
  "url": "https://poc.griffinguard.io/cve/CVE-2021-21315",
  "published_at": "2021-02-16T17:00:18Z",
  "title": "Command Injection Vulnerability",
  "vendor": "sebhildebrandt",
  "product": "systeminformation",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2022-01-18",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 336
  },
  "first_poc": {
    "created_at": "2021-07-18T01:18:31Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 151.3,
    "repo": "MazX0p/CVE-2021-21315-exploit",
    "source": "github"
  },
  "poc_repo_count": 6,
  "exploit_count": 1,
  "suspicious_repo_count": 1,
  "edge_device": null,
  "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.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [
    {
      "repo": "ForbiddenProgrammer/CVE-2021-21315-PoC",
      "url": "https://github.com/ForbiddenProgrammer/CVE-2021-21315-PoC",
      "created_at": "2021-03-01T18:52:41Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 158,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-10-13T22:52:22Z"
    },
    {
      "repo": "MazX0p/CVE-2021-21315-exploit",
      "url": "https://github.com/MazX0p/CVE-2021-21315-exploit",
      "created_at": "2021-07-18T01:18:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-09-02T16:56:05Z"
    },
    {
      "repo": "alikarimi999/CVE-2021-21315",
      "url": "https://github.com/alikarimi999/CVE-2021-21315",
      "created_at": "2021-09-07T14:31:20Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-09-06T15:41:16Z"
    },
    {
      "repo": "thelostvoice/inept-us-military",
      "url": "https://github.com/thelostvoice/inept-us-military",
      "created_at": "2021-10-11T16:50:50Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-10-11T16:46:11Z"
    },
    {
      "repo": "thelostvoice/global-takeover",
      "url": "https://github.com/thelostvoice/global-takeover",
      "created_at": "2021-10-11T17:02:52Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-10-11T16:46:11Z"
    },
    {
      "repo": "G01d3nW01f/CVE-2021-21315",
      "url": "https://github.com/G01d3nW01f/CVE-2021-21315",
      "created_at": "2021-11-10T06:40:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-12-11T14:29:14Z"
    },
    {
      "repo": "xMohamed0/CVE-2021-21315-POC",
      "url": "https://github.com/xMohamed0/CVE-2021-21315-POC",
      "created_at": "2021-11-14T14:52:25Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-11-09T17:36:53Z"
    },
    {
      "repo": "jimahub/scenario-d-kev",
      "url": "https://github.com/jimahub/scenario-d-kev",
      "created_at": "2026-09-28T08:22:28Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 75,
      "suspicious": true,
      "suspicion_reasons": [
        "pipes a download into a shell / encoded PowerShell in .github/workflows/devsecops.yml",
        "contains archives (feeds/epss.csv.gz)"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-04-01T13:23:31Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "systeminformation",
        "ranges": [
          "\u003c 5.3.1"
        ],
        "fixed_in": [
          "5.3.1"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-2m8v-572m-ff2v"
      }
    ],
    "upgrade": [
      "Upgrade systeminformation to 5.3.1 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-21315.yaml",
      "source": "nuclei",
      "title": "nuclei template: Node.JS System Information Library \u003c5.3.1 - Remote Command Injection",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/",
      "query_markers": [
        "{var}[]=$(echo '{var}' | base64 -d | bash)"
      ],
      "protocol": "http",
      "repos": [
        "G01d3nW01f/CVE-2021-21315"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "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"
      ]
    }
  ],
  "rules": []
}
