CVE-2026-50289
Received Received - Intake

Command Injection in systeminformation Library

Vulnerability report for CVE-2026-50289, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-17

Last updated on: 2026-07-17

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-17
Last Modified
2026-07-17
Generated
2026-07-18
AI Q&A
2026-07-17
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
systeminformation systeminformation 5.31.7
sebhildebrandt systeminformation to 5.31.7 (exc)
sebhildebrandt systeminformation 5.31.7

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-50289 is an OS command injection vulnerability in the systeminformation library affecting versions before 5.31.7 on Linux systems. The issue occurs in the networkInterfaces() function when processing Debian/Ubuntu interfaces(5) configuration files. The library reads /etc/network/interfaces and interpolates unquoted paths from 'source <path>' lines into a shell command executed via execSync(). If the path contains shell metaracters, arbitrary commands can be executed with the privileges of the calling Node.js process.

Detection Guidance

Check if your systeminformation library version is <= 5.31.6 by running: npm list systeminformation. If vulnerable, inspect /etc/network/interfaces for malicious source directives containing shell metacharacters. Use grep to search for source lines: grep -r 'source' /etc/network/interfaces.

Impact Analysis

This vulnerability allows an attacker with access to modify /etc/network/interfaces or sourced files to execute arbitrary commands on the system. Since networkInterfaces() is frequently called by other functions like getStaticData() and getAllData(), the impact could affect any application using this library. Attackers could gain control over the system with the privileges of the Node.js process.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling unauthorized command execution on systems using affected versions of the systeminformation library. If exploited, it may allow attackers to access or manipulate sensitive data, which could violate data protection requirements under these regulations.

Mitigation Strategies

Upgrade systeminformation to version 5.31.7 or later using: npm update systeminformation. If immediate upgrade is not possible, restrict write access to /etc/network/interfaces and files it sources to prevent malicious path injection.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-50289. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart