systeminformation: Path traversal in Linux networkStats() allows symlink-based file disclosure outside /sys/class/net
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in systeminformation 5.33.14.
systeminformation is a System and OS information library for node.js. Prior to 5.33.14, the Linux networkStats(iface) implementation uses the caller-supplied interface value in an fs.existsSync() check and to build /sys/class/net/<iface> paths, including the operstate path, without verifying that it is a single interface-name segment or that the resolved path remains under /sys/class/net. An attacker who can control iface and create a directory containing symlinked statistics files can use parent-directory components and symlink traversal to make the API return the first line of a file readable by the Node.js process. The package does not expose a network endpoint, and the demonstrated scenario requires local filesystem setup. This issue is fixed in version 5.33.14.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| sebhildebrandt | <5.33.14 | ||
| npm: systeminformation | <5.33.14 | 5.33.14 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in systeminformation (npm), strongest first
Embed
A live severity badge for an advisory, README or ticket