CVE-2026-50289

systeminformation: OS command injection in networkInterfaces() via interfaces(5) source-directive path on Linux

Published Jul 17, 2026 CVSS 4.0 · 8.7 High EPSS 2.2% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 2% 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.

Remediation

No solution or workaround provided in the CVE record.

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 October 31, 2026 at 14:27 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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Sebhildebrandt
Sebhildebrandt systeminformation
Vendors & Products Sebhildebrandt
Sebhildebrandt systeminformation
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'}

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 20, 2026, 4:22 PM
Reserved
Jun 4, 2026, 4:26 PM
Status
Analyzed
Published
Jul 17, 2026, 8:17 PM
Modified
Oct 24, 2026, 8:10 PM