Description
systeminformation is a System and OS information library for node.js. Prior to 5.31.7, networkInterfaces() on Linux is vulnerable to OS command injection through the Debian/Ubuntu interfaces(5) source directive because lib/network.js checkLinuxDCHPInterfaces() reads /etc/network/interfaces, extracts a source <path> token from file content, and interpolates it unquoted into cat ${file} 2> /dev/null | grep 'iface\|source' executed by execSync(cmd, util.execOptsLinux), allowing a path containing shell metacharacters to execute commands in any process that calls networkInterfaces(), including via getStaticData() and getAllData(). This issue is fixed in version 5.31.7.
Published: 2026-07-17
Score: 8.7 High
EPSS: 1.9% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows an attacker to inject and execute arbitrary shell commands on a vulnerable Linux system running the systeminformation library. By manipulating the source directive in the /etc/network/interfaces file, the library’s internal function interpolates the path unquoted into a shell command that is executed with execSync. The resulting command execution can occur whenever any process invokes networkInterfaces(), including high‑privilege internal functions such as getStaticData() and getAllData(). This flaw represents a classic OS command injection problem (CWE‑78) with the potential to compromise confidentiality, integrity, and availability of the affected system.

Affected Systems

The issue affects the systeminformation library maintained by sebhildebrandt, used in node.js applications. All releases prior to version 5.31.7 are vulnerable when running on Linux distributions that use the /etc/network/interfaces file, such as Debian and Ubuntu. End‑user applications that import the library and call networkInterfaces() are impacted.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, and an EPSS score of 1% suggests moderate exploit probability given the relatively recent patch. The vulnerability is not listed in the CISA KEV catalog, but its high impact warrants attention. The likely attack vector is local or application‑level; any process with permission to read /etc/network/interfaces and invoke networkInterfaces() can trigger the injection, potentially allowing an attacker to elevate privileges or compromise the entire system.

Generated by OpenCVE AI on July 30, 2026 at 23:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade systeminformation to version 5.31.7 or later.
  • Replace or sanitize any usage of networkInterfaces() in application code, or remove the call if it is not required.
  • Ensure the /etc/network/interfaces file contains only trusted source directives and monitor it for unauthorized changes.

Generated by OpenCVE AI on July 30, 2026 at 23:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-5xpp-75jx-m839 systeminformation: OS command injection in networkInterfaces() via interfaces(5) source-directive path on Linux
History

Mon, 20 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Sebhildebrandt
Sebhildebrandt systeminformation
Vendors & Products Sebhildebrandt
Sebhildebrandt systeminformation

Fri, 17 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
Description systeminformation is a System and OS information library for node.js. Prior to 5.31.7, networkInterfaces() on Linux is vulnerable to OS command injection through the Debian/Ubuntu interfaces(5) source directive because lib/network.js checkLinuxDCHPInterfaces() reads /etc/network/interfaces, extracts a source <path> token from file content, and interpolates it unquoted into cat ${file} 2> /dev/null | grep 'iface\|source' executed by execSync(cmd, util.execOptsLinux), allowing a path containing shell metacharacters to execute commands in any process that calls networkInterfaces(), including via getStaticData() and getAllData(). This issue is fixed in version 5.31.7.
Title systeminformation: OS command injection in networkInterfaces() via interfaces(5) source-directive path on Linux
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Sebhildebrandt Systeminformation
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T16:22:33.661Z

Reserved: 2026-06-04T16:26:05.986Z

Link: CVE-2026-50289

cve-icon Vulnrichment

Updated: 2026-07-20T16:07:14.853Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T23:45:05Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')