All rules →
Rules / Java
SHIELD-JAVA-011

Path Traversal via File Construction

highJavaCWE-22CVSS 7.5

What it detects

Constructing a File from request-derived input without validation enables path traversal.

How to fix

Canonicalize the path and verify it stays within an allowed base directory.

Scan your repo freeFull documentation
Back to all rules
SHIELD-JAVA-011: Path Traversal via File Construction — Zennoxa Shield