The package github.com/valyala/fasthttp before 1.34.0 are vulnerable to Directory Traversal via the ServeFile function, due to improper sanitization. It is possible to be exploited by using a backslash %5c character in the path. **Note:** This security issue impacts Windows users only.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866 | patch third party advisory exploit |
https://github.com/valyala/fasthttp/issues/1226 | patch exploit third party advisory issue tracking |
https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1 | third party advisory patch |
https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8 | third party advisory patch |
https://github.com/valyala/fasthttp/releases/tag/v1.34.0 | third party advisory release notes |