CVE-2022-21221
Fasthttp Project Fasthttp vulnerability
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.
Affected products
Fasthttp. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Fasthttp Project Fasthttp runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8 · Patch
- github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1 · Patch
- github.com/valyala/fasthttp/issues/1226 · Exploit
- snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866 · Exploit
- github.com/valyala/fasthttp/releases/tag/v1.34.0 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-21221
- pkg.go.dev/vuln/GO-2022-0355
- github.com/advisories/GHSA-fx95-883v-4q4h
- nvd.nist.gov/vuln/detail/CVE-2022-21221
- cve.org/CVERecord?id=CVE-2022-21221
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.