漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service
Vulnerability Description
String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service. The trim and rtrim functions stripped trailing whitespace with s/\s*$//u. Because \s* matches greedily and the $ anchor fails whenever a non-whitespace character follows the whitespace, the regex engine retries the match at each offset of a long whitespace run, producing quadratic backtracking. The fix replaces \s*$ with \s+$. Any caller that passes untrusted input to trim or rtrim can trigger CPU exhaustion with a string containing a long run of whitespace.
CVSS Information
N/A
Vulnerability Type
CWE-1333
Vulnerability Title
BAKERSCOT String-Util 资源管理错误漏洞
Vulnerability Description
BAKERSCOT String-Util是BAKERSCOT团队的一个字符串处理工具库。 BAKERSCOT String-Util 1.36之前版本存在资源管理错误漏洞,该漏洞源于trim和rtrim函数中的正则表达式拒绝服务,由于使用s/\\s*$//u去除尾部空白导致二次回溯,CPU消耗。
CVSS Information
N/A
Vulnerability Type
N/A