GHSA-5xpp-75jx-m839: systeminformation: OS command injection in networkInterfaces() via interfaces(5) source-directive path on Linux
The systeminformation Node.js library version prior to 5.31.7 on Linux is vulnerable to OS command injection via the networkInterfaces() function. This occurs because the library reads the /etc/network/interfaces file and recursively processes 'source' directives, interpolating unsanitized file paths into shell commands executed with execSync(). An attacker able to influence any sourced path can execute arbitrary commands with the privileges of the calling process. This vulnerability affects local asset agents, monitoring tools, and other software that calls networkInterfaces() on Linux systems. No special hardware or NetworkManager activation is required; the vulnerability arises from unsafe shell command construction with unquoted input from configuration files.
AI Analysis
Technical Summary
On Linux, the systeminformation library's networkInterfaces() function is vulnerable to OS command injection through unsanitized interpolation of paths from 'source' directives in /etc/network/interfaces and its recursively sourced files. The vulnerable function checkLinuxDCHPInterfaces() constructs a shell command string using execSync() with unquoted file path tokens extracted from the file content, allowing shell metacharacters to break out and execute arbitrary commands. This vulnerability arises because the input is read from local configuration files and not sanitized before being used in shell commands. The vulnerability affects version <5.31.7. The networkInterfaces() API is frequently called and reachable transitively, increasing exposure. An attacker able to place or influence files referenced by 'source' directives can achieve command execution with the privileges of the Node.js process using systeminformation.
Potential Impact
An attacker who can write or influence files referenced by 'source' directives in /etc/network/interfaces or its sourced files can execute arbitrary OS commands with the privileges of the Node.js process calling networkInterfaces(). If the process runs with elevated privileges, the attacker gains equivalent privilege escalation. This affects local inventory, monitoring, diagnostics, admin dashboards, and device management agents on Linux that use systeminformation versions prior to 5.31.7. The vulnerability is exploitable without special hardware or NetworkManager activation, relying solely on control over sourced configuration files.
Mitigation Recommendations
A fix is available in systeminformation version 5.31.7 and later. Users should upgrade to version 5.31.7 or newer to eliminate this vulnerability. Until upgrading, avoid running processes that call networkInterfaces() with elevated privileges if untrusted users can influence /etc/network/interfaces or its sourced files. Patch status is confirmed by the versioning information indicating versions prior to 5.31.7 are affected and fixed in 5.31.7.
GHSA-5xpp-75jx-m839: systeminformation: OS command injection in networkInterfaces() via interfaces(5) source-directive path on Linux
Description
The systeminformation Node.js library version prior to 5.31.7 on Linux is vulnerable to OS command injection via the networkInterfaces() function. This occurs because the library reads the /etc/network/interfaces file and recursively processes 'source' directives, interpolating unsanitized file paths into shell commands executed with execSync(). An attacker able to influence any sourced path can execute arbitrary commands with the privileges of the calling process. This vulnerability affects local asset agents, monitoring tools, and other software that calls networkInterfaces() on Linux systems. No special hardware or NetworkManager activation is required; the vulnerability arises from unsafe shell command construction with unquoted input from configuration files.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
On Linux, the systeminformation library's networkInterfaces() function is vulnerable to OS command injection through unsanitized interpolation of paths from 'source' directives in /etc/network/interfaces and its recursively sourced files. The vulnerable function checkLinuxDCHPInterfaces() constructs a shell command string using execSync() with unquoted file path tokens extracted from the file content, allowing shell metacharacters to break out and execute arbitrary commands. This vulnerability arises because the input is read from local configuration files and not sanitized before being used in shell commands. The vulnerability affects version <5.31.7. The networkInterfaces() API is frequently called and reachable transitively, increasing exposure. An attacker able to place or influence files referenced by 'source' directives can achieve command execution with the privileges of the Node.js process using systeminformation.
Potential Impact
An attacker who can write or influence files referenced by 'source' directives in /etc/network/interfaces or its sourced files can execute arbitrary OS commands with the privileges of the Node.js process calling networkInterfaces(). If the process runs with elevated privileges, the attacker gains equivalent privilege escalation. This affects local inventory, monitoring, diagnostics, admin dashboards, and device management agents on Linux that use systeminformation versions prior to 5.31.7. The vulnerability is exploitable without special hardware or NetworkManager activation, relying solely on control over sourced configuration files.
Mitigation Recommendations
A fix is available in systeminformation version 5.31.7 and later. Users should upgrade to version 5.31.7 or newer to eliminate this vulnerability. Until upgrading, avoid running processes that call networkInterfaces() with elevated privileges if untrusted users can influence /etc/network/interfaces or its sourced files. Patch status is confirmed by the versioning information indicating versions prior to 5.31.7 are affected and fixed in 5.31.7.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5xpp-75jx-m839
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-50289"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a58b40468715ace43d67019
Added to database: 07/16/2026, 10:35:48 UTC
Last enriched: 07/16/2026, 10:47:18 UTC
Last updated: 07/16/2026, 10:47:18 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.