Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-36064— Shescape Inefficient Regular Expression Complexity vulnerability

CVSS 5.9 · Medium EPSS 1.16% · P65

Possible ATT&CK Techniques 1AI

T1496 · Resource Hijacking
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2022-36064

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Shescape Inefficient Regular Expression Complexity vulnerability
Source: CVE Program / CVE List V5
Vulnerability Description
Shescape is a shell escape package for JavaScript. An Inefficient Regular Expression Complexity vulnerability impacts users that use Shescape to escape arguments for the Unix shells `Bash` and `Dash`, or any not-officially-supported Unix shell; and/or using the `escape` or `escapeAll` functions with the `interpolation` option set to `true`. An attacker can cause polynomial backtracking or quadratic runtime in terms of the input string length due to two Regular Expressions in Shescape that are vulnerable to Regular Expression Denial of Service (ReDoS). This bug has been patched in v1.5.10. For `Dash` only, this bug has been patched since v1.5.9. As a workaround, a maximum length can be enforced on input strings to Shescape to reduce the impact of the vulnerability. It is not recommended to try and detect vulnerable input strings, as the logic for this may end up being vulnerable to ReDoS itself.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1333
Source: CVE Program / CVE List V5
Vulnerability Title
Shescape 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Shescape是开源的一个用于JavaScript的简单外壳转义程序包。使用它可以将用户控制的输入转义给shell命令,以防止shell注入。 Shescape v1.5.10之前版本存在输入验证错误漏洞,该漏洞源于Shescape 中的两个正则表达式容易受到正则表达式拒绝服务 (ReDoS) 的影响,攻击者利用该漏洞可以在输入字符串长度方面导致多项式回溯或二次运行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
ericcornelissenshescape >= 1.5.1, < 1.5.10 -

II. Public POCs for CVE-2022-36064

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-36064

登录查看更多情报信息。

Patches & Fixes for CVE-2022-36064 (1)

Vendor Advisories for CVE-2022-36064 (1)

Other References for CVE-2022-36064 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-36064

No comments yet


Leave a comment