Skip to content
Insights · weakness

CWE-470: Use of Externally-Controlled Input to Select Classes or Code

Sources read 2026-11-18. MITRE's own page · All weakness notes · Added to CISA's list in the last seven days

What it is

From MITRE's CWE catalogue

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.

MITRE classes it as a base-level weakness.

What it lets an attacker do

From MITRE's CWE catalogue

  • Execute Unauthorized Code or Commands, Alter Execution Logic (affects: integrity, confidentiality, availability, other)
  • DoS: Crash, Exit, or Restart, Other (affects: availability, other)
  • Read Application Data (affects: confidentiality)

On CISA's exploited list

From CISA's exploited list

2 of the 113 entries CISA added from 2026-08-21 to 2026-11-18 name CWE-470, against 0 of 71 in the 90 days before. Over the whole catalogue 3 entries name it. The counts are small, so read them as a rough order, not a rate.

CISA's list is not every flaw that is exploited: it holds the ones CISA has evidence of, listed on the day it added them.

  • CVE-2026-90436, Apache Axis, added 2026-11-18
  • CVE-2026-82078, PaperCut NG/MF, added 2026-08-31
  • CVE-2021-21985, VMware vCenter Server, added 2021-11-03

How MITRE says to find it

From MITRE's CWE catalogue

  • Automated Static Analysis

What MITRE suggests

From MITRE's CWE catalogue

These are MITRE's suggestions, quoted as it gives them. They are not a complete fix and not a substitute for reading the vendor's advisory for the product you run.

  • 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.

Attack patterns MITRE links to it

From MITRE's CWE catalogue

Our technical analyses that name it

From our own notes

Start with one piece of work.

Give us one piece of work and read access to one system. We map it and come back with what we found, what we would build and what it would take — before any commitment. You decide using our output, not our pitch.

Talk to us