CVE-2026-90774: rustypaste before 0.18.1 Path Traversal via filename header
rustypaste before 0.18.1 validates the destination path before applying the optional custom filename HTTP header, allowing attackers to bypass directory-escape checks. Attackers can supply path traversal sequences in the filename header to write files outside the configured upload directory to arbitrary locations.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rustypasteto a version that resolves this vulnerability.Fixed in 0.18.1 - Operational
After upgrading to rustypaste 0.18.1, review the filesystem for any files that may have been written outside the configured upload directory via the filename header path traversal, and remove them if present.