目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CWE-1333 类漏洞列表 360

CWE-1333 类弱点 360 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-1333 属于正则表达式复杂度漏洞,指产品使用了最坏情况下计算效率低下甚至呈指数级增长的表达式。攻击者通常通过构造特定的“灾难性回溯”输入,触发正则引擎的无限循环或极高资源消耗,从而实施拒绝服务攻击。开发者应避免使用嵌套量词或重叠子模式,采用非贪婪匹配、原子组或预编译优化,并限制输入长度,以确保正则表达式的执行效率与安全性。

MITRE CWE 官方描述
CWE:CWE-1333 低效的正则表达式复杂度 (Inefficient Regular Expression Complexity) 英文:产品使用的正则表达式在最坏情况下的计算复杂度低效,且可能呈指数级增长。
常见影响 (1)
Availability DoS: Resource Consumption (CPU)
Attackers can create crafted inputs that intentionally cause the regular expression to use excessive backtracking in a way that causes the CPU consumption to spike.
缓解措施 (4)
Architecture and Design Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.
Effectiveness: High
System Configuration Set backtracking limits in the configuration of the regular expression implementation, such as PHP's pcre.backtrack_limit. Also consider limits on execution time for the process.
Effectiveness: Moderate
Implementation Do not use regular expressions with untrusted input. If regular expressions must be used, avoid using backtracking in the expression.
Effectiveness: High
Implementation Limit the length of the input that the regular expression will process.
Effectiveness: Moderate
代码示例 (2)
This example attempts to check if an input string is a "sentence" [REF-1164].
var test_string = "Bad characters: $@#"; var bad_pattern  = /^(\w+\s?)*$/i; var result = test_string.search(bad_pattern);
Bad · JavaScript
var test_string = "Bad characters: $@#"; var good_pattern  = /^((?=(\w+))\2\s?)*$/i; var result = test_string.search(good_pattern);
Good · JavaScript
This example attempts to check if an input string is a "sentence" and is modified for Perl [REF-1164].
my $test_string = "Bad characters: \$\@\#"; my $bdrslt = $test_string; $bdrslt =~ /^(\w+\s?)*$/i;
Bad · Perl
my $test_string = "Bad characters: \$\@\#"; my $gdrslt = $test_string; $gdrslt =~ /^((?=(\w+))\2\s?)*$/i;
Good · Perl
CVE ID 标题 CVSS 风险等级 Published
CVE-2024-26142 Rails 安全漏洞 — rails 7.5 High 2024-02-27
CVE-2021-4437 lambda-middleware 安全漏洞 — lambda-middleware frameguard 3.5 Low 2024-02-12
CVE-2024-21490 angular 安全漏洞 — angular 7.5 High 2024-02-10
CVE-2023-6736 GitLab Enterprise Edition 安全漏洞 — GitLab 6.5 Medium 2024-02-07
CVE-2023-6159 GitLab 安全漏洞 — GitLab 6.5 Medium 2024-01-26
CVE-2023-45806 Discourse 安全漏洞 — discourse 4.3 Medium 2023-11-10
CVE-2023-3909 GitLab 安全漏洞 — GitLab 4.3 Medium 2023-11-06
CVE-2023-45813 Torbot 安全漏洞 — TorBot 4.6 Medium 2023-10-18
CVE-2023-4316 npm zod 安全漏洞 — Zod 7.5 High 2023-09-28
CVE-2023-3210 GitLab 资源管理错误漏洞 — GitLab 6.5 Medium 2023-09-01
CVE-2023-3205 GitLab 资源管理错误漏洞 — GitLab 6.5 Medium 2023-09-01
CVE-2023-3994 GitLab 安全漏洞 — GitLab 7.5 High 2023-08-02
CVE-2023-0632 GitLab 资源管理错误漏洞 — GitLab 6.5 Medium 2023-08-01
CVE-2023-3364 GitLab 资源管理错误漏洞 — GitLab 7.5 High 2023-08-01
CVE-2023-39174 JetBrains TeamCity 安全漏洞 — TeamCity 4.3 Medium 2023-07-25
CVE-2023-3424 GitLab 安全漏洞 — GitLab 7.5 High 2023-07-13
CVE-2023-36543 Apache Airflow 输入验证错误漏洞 — Apache Airflow 6.5 - 2023-07-12
CVE-2023-26115 word-wrap 安全漏洞 — word-wrap 5.3 Medium 2023-06-22
CVE-2022-25883 node-semver 安全漏洞 — semver 5.3 Medium 2023-06-21
CVE-2023-33950 Liferay Portal和Liferay DXP 安全漏洞 — Portal 6.5 Medium 2023-05-24
CVE-2023-30858 emoji 安全漏洞 — emoji 5.3 Medium 2023-04-28
CVE-2023-30608 sqlparse 安全漏洞 — sqlparse 5.5 Medium 2023-04-18
CVE-2023-26112 configobj 安全漏洞 — configobj 3.7 Low 2023-04-03
CVE-2023-26116 Angular 安全漏洞 — angular 5.3 Medium 2023-03-30
CVE-2023-26118 Angular 安全漏洞 — angular 5.3 Medium 2023-03-30
CVE-2023-26117 Angular 安全漏洞 — angular 5.3 Medium 2023-03-30
CVE-2023-26103 Deno 安全漏洞 — deno 5.3 Medium 2023-02-25
CVE-2020-36661 lua-multipart 安全漏洞 — lua-multipart 3.5 Low 2023-02-12
CVE-2019-25103 simple-markdown 安全漏洞 — simple-markdown 4.3 Medium 2023-02-12
CVE-2019-25102 simple-markdown 安全漏洞 — simple-markdown 4.3 Medium 2023-02-12

CWE-1333 是常见的弱点类别,本平台收录该类弱点关联的 360 条 CVE 漏洞。