PT-2022-23152 · Shescape · Shescape
Ericcornelissen
·
Published
2022-09-06
·
Updated
2023-07-21
·
CVE-2022-36064
CVSS v3.1
5.9
Medium
| Vector | AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Shescape versions prior to 1.5.10
Shescape version 1.5.9 for Bash
Description
An Inefficient Regular Expression Complexity issue affects Shescape users who utilize it to escape arguments for Unix shells, including Bash and Dash, particularly when using the
escape or escapeAll functions with the interpolation option set to true. This allows an attacker to cause polynomial backtracking or quadratic runtime in terms of the input string length due to vulnerable Regular Expressions. A workaround involves enforcing a maximum length on input strings to reduce the vulnerability's impact.Recommendations
For versions prior to 1.5.10, update to version 1.5.10 or later.
For version 1.5.9 used with Bash, update to version 1.5.10 or later.
As a temporary workaround, consider enforcing a maximum length on input strings to Shescape to minimize the risk of exploitation.
Exploit
Fix
Resource Exhaustion
DoS
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Shescape