CVE-2026-50289
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 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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
systeminformationnpm | < 5.31.7 | 5.31.7 |
Affected products
5v5.31.6, v5.31.5, v5.31.4, …+ 1 more
- (no CPE)range: v5.31.6, v5.31.5, v5.31.4, …
- (no CPE)range: <5.31.7
- cpe:2.3:a:systeminformation:systeminformation:*:*:*:*:*:node.js:*:*Range: <5.31.7
- osv-coords2 versions
< 1.13.2-r6+ 1 more
- (no CPE)range: < 1.13.2-r6
- (no CPE)range: < 0.79.0-r1
Patches
Vulnerability mechanics
References
4- github.com/sebhildebrandt/systeminformation/commit/bbfddde48672d0ee124fefdb3cb4442fd9dd4f03nvdPatchWEB
- github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-5xpp-75jx-m839nvdExploitMitigationVendor AdvisoryWEB
- github.com/advisories/GHSA-5xpp-75jx-m839ghsaADVISORY
- github.com/sebhildebrandt/systeminformation/releases/tag/v5.31.7nvdProductRelease NotesWEB
News mentions
0No linked articles in our index yet.