Cyber Resilience

CWE · MITRE source

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

Abstraction: Base · CVEs in our corpus: 65

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: 04 July 2026 08:17 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 · 3 mapping(s) from 3 framework(s): CAPEC 1 (mostly) · OWASP-Web 1 (mostly) · ATT&CK 1 (partial)

See the full cumulative-coverage rollup →

OWASP Top 10 for Web (2025)

This weakness contributes to A05:2025 Injection.

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

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.

MITRE ATT&CK techniques this weakness enables

Our own two-way CWE↔ATT&CK cross-walk — a direct mapping with no public source (the CWE→CAPEC→ATT&CK chain leaves most top weaknesses, incl. XSS and SQLi, mapped to nothing). Drafted by Grok and spot-checked by Claude Opus 4.8.

Direction: other covers this; this covers other (F/M/P = full / mostly / partial).

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2021-21985 KEV10.09.81.00002021-05-26
CVE-2022-302878.08.00.70282022-07-28
CVE-2024-02008.07.20.71732024-01-16
CVE-2024-49908.09.10.79392025-03-20
CVE-2018-10006137.09.80.04772018-07-09
CVE-2019-10030407.09.80.03372019-03-28
CVE-2019-10030417.09.80.03372019-03-28
CVE-2021-315227.09.80.02902022-01-06
CVE-2023-322177.09.00.00632023-06-05
CVE-2023-69437.09.80.01842024-01-30
CVE-2024-80157.09.10.00822024-10-09
CVE-2025-53693 UPD7.09.80.13782025-09-03
CVE-2025-636907.09.10.00862025-11-07
CVE-2025-343937.09.80.00592025-12-10
CVE-2026-42027 UPD7.09.80.00692026-05-04
CVE-2018-55116.07.20.14762018-04-13
CVE-2025-3600 UPD6.07.50.19062025-05-14
CVE-2017-75365.57.00.00482018-01-10
CVE-2019-38345.57.30.01012019-10-03
CVE-2019-101745.58.80.03092019-11-25
CVE-2020-78575.57.50.01012021-04-20
CVE-2021-326475.58.00.02852021-06-01
CVE-2022-264695.57.80.00162022-09-06
CVE-2022-418535.58.00.03522022-10-06
CVE-2023-341025.58.30.01612023-06-05