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

目标: 1000 元 · 已筹: 1359 元

100%

CWE-470 使用外部可控制的输入来选择类或代码(不安全的反射) 类漏洞列表 98

CWE-470 使用外部可控制的输入来选择类或代码(不安全的反射) 类弱点 98 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-470 属于不安全反射漏洞,指程序利用外部输入通过反射机制动态选择类或方法,却未对输入进行充分校验。攻击者可构造恶意输入,诱导系统实例化非预期类或调用危险方法,从而执行任意代码或导致拒绝服务。开发者应避免直接信任外部输入,需实施严格的白名单验证机制,限制可反射的类范围,并采用安全的替代方案以消除动态加载风险。

MITRE CWE 官方描述
CWE:CWE-470 使用外部控制的输入来选择类或代码('不安全的反射') 英文:该产品使用带有反射的外部输入来选择要使用的类或代码,但它未能充分防止输入选择不当的类或代码。 如果产品使用外部输入来确定要实例化的类或要调用的方法,那么攻击者可以提供值来选择非预期的类或方法。如果发生这种情况,攻击者可以创建开发者未预期的控制流路径。这些路径可能会绕过身份验证或访问控制检查,或以其他方式导致产品以非预期的方式运行。如果攻击者能够将文件上传到出现在产品的类路径(CWE-427)中的位置,或者向产品的类路径(CWE-426)添加新条目,则这种情况将演变为一种灾难性场景。在这两种情况下,攻击者都可以使用反射向产品引入新的恶意行为。
常见影响 (3)
Integrity, Confidentiality, Availability, Other Execute Unauthorized Code or Commands, Alter Execution Logic
The attacker might be able to execute code that is not directly accessible to the attacker. Alternately, the attacker could call unexpected code in the wrong place or the wrong time, possibly modifying critical system state.
Availability, Other DoS: Crash, Exit, or Restart, Other
The attacker might be able to use reflection to call the wrong code, possibly with unexpected arguments that violate the API (CWE-227). This could cause the product to exit or hang.
Confidentiality Read Application Data
By causing the wrong code to be invoked, the attacker might be able to trigger a runtime error that leaks sensitive information in the error message, such as CWE-536.
缓解措施 (3)
Architecture and Design Refactor your code to avoid using reflection.
Architecture and Design Do not use user-controlled inputs to select and load classes or code.
Implementation Apply strict input validation by using allowlists or indirect selection to ensure that the user is only selecting allowable classes or code.
代码示例 (1)
A common reason that programmers use the reflection API is to implement their own command dispatcher. The following example shows a command dispatcher that does not use reflection:
String ctl = request.getParameter("ctl"); Worker ao = null; if (ctl.equals("Add")) { ao = new AddCommand(); } else if (ctl.equals("Modify")) { ao = new ModifyCommand(); } else { throw new UnknownActionError(); } ao.doAction(request);
Good · Java
String ctl = request.getParameter("ctl"); Class cmdClass = Class.forName(ctl + "Command"); Worker ao = (Worker) cmdClass.newInstance(); ao.doAction(request);
Bad · Java
CVE ID 标题 CVSS 风险等级 Published
CVE-2026-119578 MONAI 1.6.0 远程代码执行漏洞 — MONAI 7.8 High 2026-10-30
CVE-2026-108097 Drupal 核心远程代码执行漏洞 — Drupal core - - 2026-10-30
CVE-2026-108099 Entity List 远程代码执行漏洞 — Entity List - - 2026-10-30
CVE-2026-119050 Agno 3.1.11 通过 PandasTools 反射导致远程代码执行漏洞 — agno 8.1 High 2026-10-29
CVE-2026-115931 任意文件读取及后端崩溃漏洞 — postiz-app 9.9 Critical 2026-10-23
CVE-2026-115886 MLflow 未认证服务器通过第三方评分器参数 SSRF 漏洞 — mlflow 6.5 Medium 2026-10-23
CVE-2026-115749 hydra-ray-launcher 任意模块导入漏洞 — hydra-ray-launcher 3.3 Low 2026-10-23
CVE-2026-111851 WordPress Royal Elementor Addons <=1.7.1068 远程代码执行漏洞 — Royal Elementor Addons 7.6 High 2026-10-22
CVE-2026-114660 Grav 2.0.0 至 2.2.5 未授权页面删除漏洞 — grav 6.3 Medium 2026-10-22
CVE-2026-114508 Laravel 关系包含触发未授权数据破坏漏洞 — framework 6.5 Medium 2026-10-21
CVE-2026-92206 CrewAI Framework 不安全反射远程代码执行漏洞 — CrewAI - - 2026-10-21
CVE-2026-112145 speaches-ai 远程代码执行漏洞 — speaches 7.3 High 2026-10-19
CVE-2026-71253 Apache Johnzon 任意类加载漏洞 — Apache Johnzon - - 2026-10-19
CVE-2026-111440 JDBC LogFactory 任意类加载导致潜在 RCE — openGauss-connector-jdbc 7.0 High 2026-10-19
CVE-2026-112075 unsloth 远程代码执行漏洞 — unsloth 6.3 Medium 2026-10-19
CVE-2026-97666 Nexus Repository 3 不安全反射漏洞 — Nexus Repository 3 6.9 Medium 2026-10-15
CVE-2026-104629 Grid Protection Alliance openPDC 和 openHistorian 外部输入控制选择类或代码漏洞 — openPDC 8.8 High 2026-10-09
CVE-2026-92415 Apache Jackrabbit DavEx客户端远程代码执行漏洞 — Apache Jackrabbit 6.9 Medium 2026-10-07
CVE-2026-106440 Hydra: Optuna远程代码执行漏洞 — hydra 7.8 High 2026-10-06
CVE-2026-106439 Hydra 可变的实例化策略集允许绕过目标块列表 — hydra 8.5 High 2026-10-06
CVE-2026-105782 Scrapy: RefererMiddleware头信息漏洞导致任意模块导入 — scrapy 7.5 High 2026-10-05
CVE-2026-105064 WordPress Unlimited Elements <= 2.0.22 访问控制漏洞 — Unlimited Elements For Elementor (Free Widgets, Addons, Templates) 6.5 Medium 2026-10-05
CVE-2026-102094 Kiteworks邮件网关不安全反射漏洞 — Email Protection Gateway 7.2 High 2026-09-30
CVE-2026-102580 Moodle 报告构建器任意类实例化漏洞 2.2 Low 2026-09-30
CVE-2026-96740 Streamshub/console 控制台 operator 通过配置提供者泄露 Sa-Token — StreamsHub Console for Apache Kafka® 6.5 Medium 2026-09-28
CVE-2026-101292 Apache ActiveMQ Artemis 联邦消息反序列化存在不安全的反射漏洞 — Red Hat JBoss Enterprise Application Platform 7.4.25 8.2 High 2026-09-28
CVE-2026-96672 Frappe ERPNext 16.34.1 前未授权方法调用漏洞 — ERPNext 6.4 Medium 2026-09-23
CVE-2026-18123 IBM FTM 多重安全漏洞 — Financial Transaction Manager (FTM) for RedHat OpenShift 7.6 High 2026-09-22
CVE-2026-70410 Apache Calcite Avatica 插件初始化不受限漏洞 — Apache Calcite Avatica - - 2026-09-22
CVE-2026-78030 Perl DBI 1.653 前任意模块加载漏洞 - - 2026-09-19

CWE-470(使用外部可控制的输入来选择类或代码(不安全的反射)) 是常见的弱点类别,本平台收录该类弱点关联的 98 条 CVE 漏洞。