HIGH 7.5 Go
Path traversal in github.com/valyala/fasthttp
GHSA-fx95-883v-4q4h · CVE-2022-21221 · GO-2022-0355 · SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866
Published · Modified
Description
The package github.com/valyala/fasthttp before 1.34.0 is 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.
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2022-21221
- WEB https://github.com/valyala/fasthttp/issues/1226
- WEB https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8
- WEB https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1
- PACKAGE https://github.com/valyala/fasthttp
- WEB https://github.com/valyala/fasthttp/releases/tag/v1.34.0
- WEB https://pkg.go.dev/vuln/GO-2022-0355
- WEB https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866
Ready to move
Start Securing
Free, no credit card | First findings in minutes