static-web-server
Affected
- introduced
0, fixed2.40.1(semver)
Fixed versions
2.40.1
Fix
- Fixed version
2.40.1cargo update -p static-web-server --precise 2.40.1
Advisory
Also known as: CVE-2025-67487
Static Web Server vulnerable to a symbolic link path traversal
Summary
Symbolic links (_symlinks_) could be used to access files or directories outside the intended web root folder.
Details
SWS generally does not prevent symlinks from escaping the web server’s root directory. Therefore, if a malicious actor gains access to the web server’s root directory, they could create symlinks to access other files outside the designated web root folder either by URL or via the directory listing.
PoC
ln -s escape.txt $HOME/.bashrchttp://localhost/escape.txt in your browser.Impact
Any web server that runs with elevated privileges (e.g., root/administrator) and handles user-supplied file uploads is primarily impacted.
Medium Basis: The source's own band: MODERATE
0, fixed 2.40.1 (semver)2.40.1
2.40.1cargo update -p static-web-server --precise 2.40.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0