GitHub Advisoryadvisory · crates.io
GHSA-459f-x8vq-xjjm Static Web Server vulnerable to a symbolic link path traversal
MEDIUM
Official page ↗
- Aliases
- CVE-2025-67487
- Ecosystem
- crates.io
- Packages
- static-web-server
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
- Weaknesses
- CWE-61
- Reviewed
- 2025-12-08
Affected packages
• crates.io static-web-server: < 2.40.1 → fixed in 2.40.1
Description
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
• Serve a directory (web root) with SWS.
• Create a symlink inside the web root that points to a file outside the web root.
e.g. `ln -s escape.txt $HOME/.bashrc`
• Open `http://localhost/escape.txt` in your browser.
• The file content will be served.
Impact
Any web server that runs with elevated privileges (e.g., root/administrator) and handles user-supplied file uploads is primarily impacted.
Related
Alias · CVE (1)
- CVE-2025-67487 Static Web Server (SWS) is a production-ready web server suitable for static web files or assets. vulnerability
Weakness · CWE (1)
- CWE-61 UNIX Symbolic Link (Symlink) Following weakness
References
- https://github.com/static-web-server/static-web-server/security/advisories/GHSA-459f-x8vq-xjjm web
- https://nvd.nist.gov/vuln/detail/CVE-2025-67487 advisory
- https://github.com/static-web-server/static-web-server/commit/308f0d26ceb9c2c8bd219315d0f53914763357f2 web
- https://github.com/static-web-server/static-web-server package