Sebhildebrandt systeminformation
systeminformation: Windows command injection in services() through Unicode quotation marks
systeminformation is a System and OS information library for node.js. Prior to 5.33.16, services() in lib/processes.js inserts a caller-supplied service name into a PowerShell Get-CimInstance filter after processing it with sanitizeShellString() in lib/util.js. On Windows, the sanitizer removes ASCII quotes but permits Unicode quotation marks that PowerShell accepts as string delimiters, allowing crafted input to terminate the filter and place a PowerShell expression in the command executed by util.powerShell(). The expression runs with the Node.js process account's permissions and may read or change accessible files, alter application data, or disrupt the service. The package does not expose a network service itself, so remote reachability depends on a consuming application forwarding attacker-controlled input to services() or getDynamicData(). This issue is fixed in version 5.33.16.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.33.16
Fixed in 5.33.16
Mitigation
Upgrade systeminformation to 5.33.16 or later.
References
- Vendor advisory github.com/sebhildebrandt/systeminformation/se…
- Patch github.com/sebhildebrandt/systeminformation/co…
- Release notes github.com/sebhildebrandt/systeminformation/re…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.