{"id":"CVE-2026-50289","published":"2026-07-17T19:42:41Z","modified":"2026-07-20T16:22:33Z","title":"systeminformation: OS command injection in networkInterfaces() via interfaces(5) source-directive path on Linux","vendor":"sebhildebrandt","product":"systeminformation","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02184,"percentile":0.82828,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-5xpp-75jx-m839","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sebhildebrandt/systeminformation/commit/bbfddde48672d0ee124fefdb3cb4442fd9dd4f03","tags":["x_refsource_MISC"]},{"url":"https://github.com/sebhildebrandt/systeminformation/releases/tag/v5.31.7","tags":["x_refsource_MISC"]}],"priority":{"score":22.7,"factors":[{"name":"EPSS percentile","points":16.57},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"sebhildebrandt","affectedVersions":[{"vendor":"sebhildebrandt","product":"systeminformation","versions":["< 5.31.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-20T16:07:02.400955Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"systeminformation","vulnerableRanges":["<5.31.7"],"patched":["5.31.7"],"from":["GHSA-5xpp-75jx-m839"],"provenance":"source"}],"summary":{"text":"The systeminformation library for Node.js, in its networkInterfaces() function on Linux, contains an OS command injection flaw in how it handles the source directive of Debian/Ubuntu /etc/network/interfaces files, where a path taken from the file is passed unquoted into a shell command. An attacker who can write a crafted source path containing shell metacharacters into that file can execute arbitrary commands in any process that calls networkInterfaces(), including through getStaticData() and getAllData(), with the attack requiring only local low-privilege access and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:38Z"},"euvd":{"id":"EUVD-2026-45265","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-26280","published":"2026-02-19","fixed":"5.30.8","kev":false},{"cve":"CVE-2026-26318","published":"2026-02-19","fixed":"5.31.0","kev":false},{"cve":"CVE-2026-44724","published":"2026-05-27","fixed":"5.31.6","kev":false,"link":{"from":"CVE-2026-44724","to":"CVE-2026-50289","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:systeminformation","fromFixed":"5.31.6","toFixed":"5.31.7","daysApart":51}]}},{"cve":"CVE-2026-50289","published":"2026-07-17","fixed":"5.31.7","kev":false},{"cve":"CVE-2026-116674","published":"2026-10-27","fixed":"5.33.13","kev":false,"link":{"from":"CVE-2026-50289","to":"CVE-2026-116674","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:systeminformation","fromFixed":"5.31.7","toFixed":"5.33.13","daysApart":102},{"kind":"same-code","provenance":"machine","files":["lib/network.js"],"commits":["https://github.com/sebhildebrandt/systeminformation/commit/6ff25a1ebc0b1fdc7a8aa3507e46f22007da2969","https://github.com/sebhildebrandt/systeminformation/commit/bbfddde48672d0ee124fefdb3cb4442fd9dd4f03"],"basis":"shared file"}]}},{"cve":"CVE-2026-116673","published":"2026-10-27","fixed":"5.33.14","kev":false},{"cve":"CVE-2026-116576","published":"2026-10-26","fixed":"5.33.16","kev":false}],"package":"npm:systeminformation"}}