GitHub Advisoryadvisory · Go
GHSA-fx95-883v-4q4h Path traversal in github.com/valyala/fasthttp
HIGH
Official page ↗
- Aliases
- CVE-2022-21221
- Ecosystem
- Go
- Packages
- github.com/valyala/fasthttp
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2022-03-18
Affected packages
• Go github.com/valyala/fasthttp: < 1.34.0 → fixed in 1.34.0
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.
Related
Alias · CVE (1)
- CVE-2022-21221 The package github.com/valyala/fasthttp before 1.34.0 are vulnerable to Directory Traversal via the ServeFile function, due to improper… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-21221 advisory
- https://github.com/valyala/fasthttp/issues/1226 web
- https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8 web
- https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1 web
- https://github.com/valyala/fasthttp package
- 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 web