REDHAT-BUG-2482416: Command Injection
systeminformation is a System and OS information library for node.js. From 4.17.0 to 5.31.5, on Linux, systeminformation is vulnerable to command injection in networkInterfaces() when an active NetworkManager connection profile name contains shell metacharacters. The vulnerable value is obtained internally from real nmcli device status output. The library sanitizes the network interface name before using it in shell commands, but it does not apply equivalent sanitization to the parsed NetworkManager connection profile name. That unsanitized connectionName is then interpolated into three shell command strings executed through execSync(). This vulnerability is fixed in 5.31.6.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
systeminformationto a version that resolves this vulnerability.Fixed in 5.31.6
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2482416?
The severity of REDHAT-BUG-2482416 is classified as high with a score of 7.
What type of vulnerability is associated with REDHAT-BUG-2482416?
REDHAT-BUG-2482416 is associated with a command injection vulnerability.
How do I fix REDHAT-BUG-2482416?
To fix REDHAT-BUG-2482416, upgrade the systeminformation library to a version higher than 5.31.5.
What versions of systeminformation are affected by REDHAT-BUG-2482416?
Versions of systeminformation from 4.17.0 to 5.31.5 are affected by REDHAT-BUG-2482416.
What can be exploited in REDHAT-BUG-2482416?
The vulnerability can be exploited through command injection when obtaining network interfaces with shell metacharacters in the connection profile name.