CWE-470: Use of Externally-Controlled Input to Select Classes or Code (Reflection Injection), published in 2022
Filter
The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.
What the weakness is: CWE-470 at MITRE. OWASP Top 10: A05:2025 Injection. All weaknesses
Related attack patterns (CAPEC): 1
- CAPEC-138 Reflection Injection Severity: Very High
The attack patterns MITRE's CAPEC relates to CWE-470, as MITRE names them. Credits.
Ask an AI about CWE-470
Show the prompt
Explain CWE-470: Use of Externally-Controlled Input to Select Classes or Code and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/470.html and https://cve.bz/cve/cwe/470?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 9.8CVE-2022-41853EPSS 5.1%
Those using java.sql.Statement or java.sql.PreparedStatement in hsqldb (HyperSQL DataBase) to process untrusted input may be vulnerable to a remote code execution attack. By default it is allowed to call any static method of any Java class…
- 7.8CVE-2022-26469google androidEPSS 0.2%
In MtkEmail, there is a possible escalation of privilege due to fragment injection. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Patch ID:…
- 8.0CVE-2022-30287EPSS 69%
Horde Groupware Webmail Edition through 5.2.22 allows a reflection injection attack through which an attacker can instantiate a driver class. This then leads to arbitrary deserialization of PHP objects.
- 2.3CVE-2022-23744checkpointEPSS 4.6%
Check Point Endpoint before version E86.50 failed to protect against specific registry change which allowed to disable endpoint protection by a local administrator.
- 9.8CVE-2021-31522apache kylinEPSS 3.0%
Kylin can receive user input and load any class through Class.forName(...). This issue affects Apache Kylin 2 version 2.6.6 and prior versions; Apache Kylin 3 version 3.1.2 and prior versions; Apache Kylin 4 version 4.0.0 and prior version…