Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-5xpp-75jx-m839: systeminformation: OS command injection in networkInterfaces() via interfaces(5) source-directive path on Linux

0
High
Published: 07/15/2026 (07/15/2026, 23:09:28 UTC)
Source: GCVE Database
Product: systeminformation

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

npmghsa
systeminformation
Affected versions
<5.31.7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/16/2026, 10:47:18 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses