Cyber Resilience

CWE · MITRE source

CWE-470Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

Abstraction: Base · CVEs in our corpus: 86

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: 22 August 2026 00:25 UTC

Cumulative inbound coverage

How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.

Collective: mostly · 1 mapping(s) from 1 framework(s): CAPEC 1 (mostly)

See the full cumulative-coverage rollup →

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.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • SC-44 Detonation Chambers
  • PR.PS-06
  • AC-3 Access Enforcement
  • AC-6 Least Privilege
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

NIST 800-53 r5 controls that address this weakness (1)AI-assisted

Control Title Family Why it addresses this CWE
SC-44Detonation ChambersSCExternally 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 9.99.81.00002021-05-26
CVE-2024-4990 9.49.10.80082025-03-20
CVE-2022-30287 8.68.00.70652022-07-28
CVE-2025-53693 8.39.80.14122025-09-03
CVE-2018-1000613 7.99.80.04772018-07-09
CVE-2019-1003040 7.89.80.03372019-03-28
CVE-2019-1003041 7.89.80.03372019-03-28
CVE-2021-31522 7.89.80.02902022-01-06
CVE-2024-0200 7.87.20.71732024-01-16
CVE-2023-6943 7.79.80.02132024-01-30
CVE-2026-44416 7.59.80.01162026-08-10
CVE-2025-34393 7.49.80.00692025-12-10
CVE-2026-42027 7.49.80.00672026-05-04
CVE-2026-465627.49.80.00782026-07-16
CVE-2026-400087.39.80.00422026-07-10
CVE-2025-3600 7.27.50.24142025-05-14
CVE-2019-10174 7.08.80.03092019-11-25
CVE-2023-33652 7.08.80.02492023-06-06
CVE-2024-28121 6.98.80.01552024-03-12
CVE-2022-49936.99.10.00482026-08-13
CVE-2026-130516.99.10.00452026-08-13
CVE-2024-6096 6.78.80.00862024-07-24
CVE-2026-656086.78.80.00852026-07-23
CVE-2023-34102 6.68.30.01612023-06-05
CVE-2024-8014 6.68.80.00622024-10-09