PT-2022-20591
CVE-2022-31179
·
Published
2022-07-15
·
Updated
2022-08-09
Description by
CVSS 3.1
8.1
HighMetricsAV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H
Name of the Vulnerable Software and Affected Versions
Shescape versions prior to 1.5.8
Description
The issue impacts users of Shescape who use any API function to escape arguments for cmd.exe on Windows. An attacker can omit all arguments following their input by including a line feed character (
) in the payload. This allows for code injection on Windows.Recommendations
For versions prior to 1.5.8, upgrade to version 1.5.8 to resolve the issue. No further changes are required.
Alternatively, line feed characters (
) can be stripped out manually or the user input can be made the last argument to limit the impact.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾