{"id":"GHSA-fx95-883v-4q4h","revision":"bd5c11cdcdfb4390a0788bb59295dc1a","records":[{"revision":"bd5c11cdcdfb4390a0788bb59295dc1a","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-fx95-883v-4q4h","aliases":["CVE-2022-21221","GO-2022-0355","SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"],"title":"Path traversal in github.com/valyala/fasthttp","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.","state":0,"publishedAt":"2022-03-18T00:01:11+00:00","modifiedAt":"2026-07-08T06:49:38.0335111+00:00","affected":[{"ecosystem":"Go","name":"github.com/valyala/fasthttp","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.34.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-21221","https://github.com/valyala/fasthttp/issues/1226","https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8","https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1","https://github.com/valyala/fasthttp","https://github.com/valyala/fasthttp/releases/tag/v1.34.0","https://pkg.go.dev/vuln/GO-2022-0355","https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"],"sourceUrl":"https://github.com/advisories/GHSA-fx95-883v-4q4h","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-fx95-883v-4q4h","identifiers":["GHSA-fx95-883v-4q4h","CVE-2022-21221","GO-2022-0355","SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"]},"retained":false,"historicalAffected":[]}],"coverage":[]}