CWE · MITRE source
CWE-470Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
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.
If the product uses external inputs to determine which class to instantiate or which method to invoke, then an attacker could supply values to select unexpected classes or methods. If this occurs, then the attacker could create control flow paths that were not intended by the developer. These paths could bypass authentication or access control checks, or otherwise cause the product to behave in an unexpected manner. This situation becomes a doomsday scenario if the attacker can upload files into a location that appears on the product's classpath (CWE-427) or add new entries to the product's classpath (CWE-426). Under either of these conditions, the attacker can use reflection to introduce new, malicious behavior into the product.
Last updated: 15 October 2026 20:36 UTC
OWASP Top 10 for Web (2025)
This weakness contributes to A05:2025 Injection.
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
NIST 800-53 r5 controls PROPOSED for this weakness (1)AI-assisted
These are model PROPOSALS, not graded mappings. They come
from controls_to_cwe_proposals, which carries no grade field at
all; across the CWE pages 1,540 of 1,722 such associations (89%) have never
been graded by anything. The heading said “address” until
2026-09-29, which asserted a relationship the data does not carry.
Graded cross-walks are on the framework map, not here.
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
SC-44 | Detonation Chambers | SC | Externally controlled class or code selection can be resolved and invoked inside the chamber, surfacing unsafe reflection without system impact. |
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2021-21985 KEV UPD | 9.9 | 9.8 | 1.0000 | 2021-05-26 |
CVE-2024-4990 UPD | 9.4 | 9.1 | 0.8023 | 2025-03-20 |
CVE-2026-82078 KEV UPD | 9.0 | 9.1 | 0.6353 | 2026-08-28 |
CVE-2022-30287 UPD | 8.5 | 8.0 | 0.6941 | 2022-07-28 |
CVE-2025-53693 UPD | 8.5 | 9.8 | 0.2008 | 2025-09-03 |
CVE-2018-1000613 UPD | 7.9 | 9.8 | 0.0477 | 2018-07-09 |
CVE-2019-1003040 UPD | 7.8 | 9.8 | 0.0343 | 2019-03-28 |
CVE-2019-1003041 UPD | 7.8 | 9.8 | 0.0343 | 2019-03-28 |
CVE-2021-31522 UPD | 7.8 | 9.8 | 0.0290 | 2022-01-06 |
CVE-2024-0200 UPD | 7.8 | 7.2 | 0.7173 | 2024-01-16 |
CVE-2023-6943 UPD | 7.7 | 9.8 | 0.0213 | 2024-01-30 |
CVE-2026-42027 UPD | 7.5 | 9.8 | 0.0127 | 2026-05-04 |
CVE-2026-46562 | 7.5 | 9.8 | 0.0098 | 2026-07-16 |
CVE-2026-44416 UPD | 7.5 | 9.8 | 0.0124 | 2026-08-10 |
CVE-2026-62379 UPD | 7.5 | 9.8 | 0.0107 | 2026-09-15 |
CVE-2026-55107 | 7.5 | 10.0 | 0.0080 | 2026-09-30 |
CVE-2025-34393 UPD | 7.4 | 9.8 | 0.0071 | 2025-12-10 |
CVE-2026-40008 | 7.4 | 9.8 | 0.0060 | 2026-07-10 |
CVE-2026-55559 UPD | 7.4 | 9.8 | 0.0078 | 2026-08-28 |
CVE-2026-41871 | 7.4 | 9.8 | 0.0075 | 2026-09-09 |
CVE-2026-93762 | 7.4 | 9.8 | 0.0057 | 2026-09-18 |
CVE-2026-78030 | 7.3 | 9.8 | 0.0042 | 2026-09-19 |
CVE-2025-3600 UPD | 7.2 | 7.5 | 0.2509 | 2025-05-14 |
CVE-2019-10174 UPD | 7.0 | 8.8 | 0.0309 | 2019-11-25 |
CVE-2023-33652 UPD | 7.0 | 8.8 | 0.0249 | 2023-06-06 |