{"id":"CVE-2022-21221","details":"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.","aliases":["GHSA-fx95-883v-4q4h","GO-2022-0355"],"modified":"2026-04-10T04:43:58.377318Z","published":"2022-03-17T12:15:08.087Z","related":["SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"],"references":[{"type":"ADVISORY","url":"https://github.com/valyala/fasthttp/releases/tag/v1.34.0"},{"type":"FIX","url":"https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8"},{"type":"FIX","url":"https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1"},{"type":"FIX","url":"https://github.com/valyala/fasthttp/issues/1226"},{"type":"FIX","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/valyala/fasthttp","events":[{"introduced":"0"},{"fixed":"59f94a3f7137d0ad215bd262df7082d1e632a1f7"},{"fixed":"15262ecf3c602364639d465daba1e7f3604d00e8"},{"fixed":"6b5bc7bb304975147b4af68df54ac214ed2554c1"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"1.34.0"}]}}],"versions":["v1.0.0","v1.1.0","v1.10.0","v1.11.0","v1.12.0","v1.13.0","v1.13.1","v1.14.0","v1.15.0","v1.15.1","v1.16.0","v1.17.0","v1.18.0","v1.19.0","v1.2.0","v1.20.0","v1.21.0","v1.22.0","v1.23.0","v1.24.0","v1.25.0","v1.26.0","v1.27.0","v1.28.0","v1.29.0","v1.3.0","v1.30.0","v1.31.0","v1.32.0","v1.33.0","v1.4.0","v1.5.0","v1.6.0","v1.7.0","v1.7.1","v1.8.0","v1.9.0","v20160316","v20160419","v20160617","v20180529"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21221.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}