Command Injection Affecting systeminformation package, versions <4.31.1


0.0
high

Snyk CVSS

    Attack Complexity Low
    Confidentiality High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.18% (55th percentile)
Expand this section
NVD
8.8 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-SYSTEMINFORMATION-1050436
  • published 14 Dec 2020
  • disclosed 11 Dec 2020
  • credit EffectRenan

How to fix?

Upgrade systeminformation to version 4.31.1 or higher.

Overview

systeminformation is a simple system and OS information library.

Affected versions of this package are vulnerable to Command Injection. The sanitizeShellString function does not sanitize quotation marks, which could be leveraged by an attacker to execute arbitrary commands.

PoC

const si = require('systeminformation');
si.inetLatency("`<OS command>`");