All rules →
Rules / Rust
SHIELD-RUST-012

Path traversal via user-controlled file path

highRustCWE-22CVSS 7.5

What it detects

Opening a format!-built path can escape the intended directory (../).

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-RUST-012: Path traversal via user-controlled file path — Zennoxa Shield