RUSTSEC-2026-0443: Hidden file disclosure through Windows short names
On Windows volumes with 8.3 short names, actixfiles::Files can serve hidden files through their short-name aliases. The default path check rejects segments that start with a dot, but an alias such as ENV~1 or GIT~1 passes this check.
A remote client can read files such as .env or .git/config in the served directory even when usehiddenfiles() is not enabled. This can expose secrets or source code.
Upgrade to actix-files 0.7.4 or later. As a workaround, remove sensitive files and directories from the served directory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/actix-filesto a version that resolves this vulnerability.Fixed in 0.7.4 - Upgrade
Upgrade
actix-filesto a version that resolves this vulnerability.Fixed in 0.7.4 - Remove
Remove the affected component from your environment.
Remove sensitive files such as .env and .git/config from the served directory.