{"id":"GHSA-fx95-883v-4q4h","summary":"Path traversal in github.com/valyala/fasthttp","details":"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.","aliases":["CVE-2022-21221","GO-2022-0355","SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"],"modified":"2026-07-08T06:49:38.033511120Z","published":"2022-03-18T00:01:11Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-03-18T22:58:55Z","nvd_published_at":"2022-03-17T12:15:00Z","cwe_ids":["CWE-22"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21221"},{"type":"WEB","url":"https://github.com/valyala/fasthttp/issues/1226"},{"type":"WEB","url":"https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8"},{"type":"WEB","url":"https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1"},{"type":"PACKAGE","url":"https://github.com/valyala/fasthttp"},{"type":"WEB","url":"https://github.com/valyala/fasthttp/releases/tag/v1.34.0"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0355"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"}],"affected":[{"package":{"name":"github.com/valyala/fasthttp","ecosystem":"Go","purl":"pkg:golang/github.com/valyala/fasthttp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.34.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-fx95-883v-4q4h/GHSA-fx95-883v-4q4h.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}