All rules →
Rules / Java
SHIELD-JAVA-016

Unsafe Reflection via Class.forName with Variable

highJavaCWE-470CVSS 7.5

What it detects

Class.forName loading a class from a variable enables attacker-controlled class loading.

How to fix

Restrict loadable classes to an allowlist rather than instantiating from raw input.

Scan your repo freeFull documentation
Back to all rules
SHIELD-JAVA-016: Unsafe Reflection via Class.forName with Variable — Zennoxa Shield