All rules →
Rules / Ruby
SHIELD-RUBY-015

Path traversal via File or send_file with params

highRubyCWE-22CVSS 8.1

What it detects

Building a file path from params in File.read, File.open, or send_file enables path traversal.

How to fix

Resolve the path and confirm it stays within an allowed base directory before access.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-015: Path traversal via File or send_file with params — Zennoxa Shield