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

目标: 1000 元 · 已筹: 1336

100%

CWE-95 动态执行代码中指令转义处理不恰当(Eval注入) 类漏洞列表 155

CWE-95 动态执行代码中指令转义处理不恰当(Eval注入) 类弱点 155 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-95 属于代码注入类漏洞,指程序在接收上游输入后,未正确净化代码语法便直接用于动态执行调用(如 eval)。攻击者通常通过构造恶意输入,诱导程序执行任意代码,从而获取系统控制权或窃取数据。开发者应避免使用动态执行函数,若必须使用,需严格对输入进行白名单校验或转义特殊字符,确保仅允许预期的安全代码片段被执行,从而从根源上阻断注入风险。

MITRE CWE 官方描述
CWE:CWE-95 动态评估代码中指令的不当中和('Eval Injection') 英文:产品从上游组件接收输入,但在将输入用于动态评估调用(例如 "eval")之前,未对代码语法进行中和或中和不当。
常见影响 (5)
Confidentiality Read Files or Directories, Read Application Data
The injected code could access restricted data / files.
Access Control Bypass Protection Mechanism
In some cases, injectable code controls authentication; this may lead to a remote vulnerability.
Access Control Gain Privileges or Assume Identity
Injected code can access resources that the attacker is directly prevented from accessing.
Integrity, Confidentiality, Availability, Other Execute Unauthorized Code or Commands
Code injection attacks can lead to loss of data integrity in nearly all cases as the control-plane data injected is always incidental to data recall or writing. Additionally, code injection can often result in the execution of arbitrary code or at least modify what code can be executed.
Non-Repudiation Hide Activities
Often the actions performed by injected control code are unlogged.
缓解措施 (4)
Architecture and Design, Implementation If possible, refactor your code so that it does not need to use eval() at all.
Implementation Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range…
Implementation Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180, CWE-181). Make sure that your application does not inadvertently decode the same input twice (CWE-174). Such errors could be used to bypass allowlist schemes by introducing dangerous inputs after they have been checked. Use libraries such as the OWASP ESAPI Canonicalizat…
Implementation For Python programs, it is frequently encouraged to use the ast.literal_eval() function instead of eval, since it is intentionally designed to avoid executing code. However, an adversary could still cause excessive memory or stack consumption via deeply nested structures [REF-1372], so the python documentation discourages use of ast.literal_eval() on untrusted data [REF-1373].
Effectiveness: Discouraged Common Practice
代码示例 (2)
edit-config.pl: This CGI script is used to modify settings in a configuration file.
use CGI qw(:standard); sub config_file_add_key { my ($fname, $key, $arg) = @_; # code to add a field/key to a file goes here } sub config_file_set_key { my ($fname, $key, $arg) = @_; # code to set key to a particular file goes here } sub config_file_delete_key { my ($fname, $key, $arg) = @_; # code to delete key from a particular file goes here } sub handleConfigAction { my ($fname, $action) = @_; my $key = param('key'); my $val = param('val'); # this is super-efficient code, especially if you have to invoke # any one of dozens of different functions! my $code = "config_file_$action_key(\$fnam
Bad · Perl
add_key(",","); system("/bin/ls");
Attack
This simple python3 script asks a user to supply a comma-separated list of numbers as input and adds them together.
def main(): sum = 0 try: numbers = eval(input("Enter a comma-separated list of numbers: ")) except SyntaxError: print("Error: invalid input") return for num in numbers: sum = sum + num print(f"Sum of {numbers} = {sum}") main()
Bad · Python
__import__('subprocess').getoutput('rm -r *')
Attack
CVE ID 标题 CVSS 风险等级 Published
CVE-2026-57149 plone.app.portlets Vulnerable to Remote Code Execution via TALES Injection — plone.app.portlets 9.9 Critical 2026-09-22
CVE-2026-76974 Information Disclosure vulnerability in SAP Fiori Launchpad — SAP Fiori Launchpad 5.3 Medium 2026-09-22
CVE-2025-53837 XWiki XML渲染库代码执行漏洞 — xwiki-rendering 9.9 Critical 2026-09-18
CVE-2026-45579 DIRAC RequestManager 远程代码执行漏洞 — DIRAC 9.9 Critical 2026-09-15
CVE-2026-19780 Koha 代码注入漏洞 — Koha - - 2026-09-15
CVE-2026-82789 Contec CONPROSYS HMI System 代码注入漏洞 — CONPROSYS HMI System(CHS) 8.8 High 2026-09-14
CVE-2026-80351 Apache Camel K 代码注入漏洞 — Apache Camel K - - 2026-09-10
CVE-2026-78550 Okta Access Gateway 代码注入漏洞 — Okta Access Gateway 6.6 Medium 2026-09-08
CVE-2026-48273 Adobe ColdFusion 代码注入漏洞 — ColdFusion 2025 9.9 Critical 2026-09-08
CVE-2026-76190 Adobe ColdFusion 代码注入漏洞 — ColdFusion 2025 8.6 High 2026-09-08
CVE-2026-79678 FreeIPA 代码注入漏洞 — Red Hat Enterprise Linux 10 8.1 High 2026-09-07
CVE-2026-85165 n8n 代码注入漏洞 — n8n 7.2 High 2026-09-03
CVE-2026-65643 WebPros cPanel 代码注入漏洞 — cPanel 8.7 High 2026-09-01
CVE-2026-19295 IBM Langflow OSS 代码注入漏洞 — Langflow OSS 9.9 Critical 2026-08-28
CVE-2026-54569 SENAITE.CORE 授权问题漏洞 — senaite.core 9.8 Critical 2026-08-26
CVE-2026-75062 Google Langfun 代码注入漏洞 — langfun 9.2 Critical 2026-08-26
CVE-2026-78136 CHIRP 代码注入漏洞 — CHIRP 7.8 High 2026-08-23
CVE-2026-61539 Xorbits Inference 代码注入漏洞 — inference 10.0 Critical 2026-08-21
CVE-2026-77810 Amazon Athena Federated Query Neptune Connector 代码注入漏洞 — Athena Federated Query Neptune Connector 9.9 Critical 2026-08-21
CVE-2026-76833 CustomerGauge Public Packages 代码注入漏洞 — @cgauge/yaml 7.8 High 2026-08-20
CVE-2026-34398 FreeCAD 代码注入漏洞 — FreeCAD 7.8 High 2026-08-17
CVE-2026-34399 FreeCAD 代码注入漏洞 — FreeCAD 7.8 High 2026-08-17
CVE-2026-74899 jahlives openssl_encrypt 代码注入漏洞 — openssl_encrypt 9.8 Critical 2026-08-17
CVE-2026-19626 Tenable Security Center 代码注入漏洞 — Security Center 9.9 Critical 2026-08-14
CVE-2026-13048 GSHANK Data-MuForm 代码注入漏洞 - - 2026-08-13
CVE-2026-73602 FlowiseAI Flowise 代码注入漏洞 — Flowise 9.0 Critical 2026-08-13
CVE-2026-73601 FlowiseAI Flowise 代码注入漏洞 — Flowise 9.0 Critical 2026-08-13
CVE-2026-73231 faker-js faker 代码注入漏洞 — faker 7.8 High 2026-08-11
CVE-2025-31114 lllyasviel Fooocus 代码注入漏洞 — Fooocus 9.3 Critical 2026-08-11
CVE-2026-69253 FlowiseAI Flowise 代码注入漏洞 — Flowise 9.0 Critical 2026-08-04

CWE-95(动态执行代码中指令转义处理不恰当(Eval注入)) 是常见的弱点类别,本平台收录该类弱点关联的 155 条 CVE 漏洞。