Skip to content

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

HighCVSS 8.7 EPSS 2.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

6 packages: 4 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/node-systeminformation(Ubuntu 26.10) All versions No fix listed No fix yet
azure linux python-jupytext(Azure Linux 4.0) < 0:1.19.6-2.azl4 0:1.19.6-2.azl4 Fixed
debian/node-systeminformation(Debian 14) < 5.31.7-1; = 5.31.6-1; = 5.31.6-2; = 5.31.6-3 +1 more 5.31.7-1 Fixed
npm systeminformation(npm) < 5.31.7; <= 5.31.6 5.31.7 Fixed
systeminformation < 5.31.7 5.31.7 Fixed
sebhildebrandt systeminformation = < 5.31.7 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
sebhildebrandt systeminformation = < 5.31.7 No fix listed
npm systeminformation(npm) <= 5.31.6 No fix listed
debian/node-systeminformation(Debian:14) < 5.31.7-1 5.31.7-1
debian/node-systeminformation(Debian:14) = 5.31.6-1 No fix listed
debian/node-systeminformation(Debian:14) = 5.31.6-2 No fix listed
debian/node-systeminformation(Debian:14) = 5.31.6-3 No fix listed
debian/node-systeminformation(Debian:14) = 5.31.6-4 No fix listed
ubuntu/node-systeminformation(Ubuntu:26.10) All versions No fix listed
systeminformation < 5.31.7 5.31.7
npm systeminformation(npm) < 5.31.7 5.31.7
azure linux python-jupytext(Azure Linux:4.0) < 0:1.19.6-2.azl4 0:1.19.6-2.azl4

References