PT-2022-20591 · Shescape · Shescape
Ericcornelissen
·
Published
2022-07-15
·
Updated
2022-08-09
·
CVE-2022-31179
CVSS v3.1
8.1
High
| Vector | AV: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.Exploit
Fix
Special Elements Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Shescape