{"cve":"CVE-2022-21221","nvd":{"published":"2022-03-17T12:15:08.087","modified":"2026-06-17T04:25:46.757","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-22"],"references":["https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8","https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1","https://github.com/valyala/fasthttp/issues/1226","https://github.com/valyala/fasthttp/releases/tag/v1.34.0","https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"],"products":["fasthttp_project:fasthttp"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2022-21221","score":0.02496,"percentile":0.8468,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fx95-883v-4q4h","url":"https://osv.dev/vulnerability/GHSA-fx95-883v-4q4h","summary":"Path traversal in github.com/valyala/fasthttp","modified":"2026-07-08T06:49:38.033511120Z","packages":[{"ecosystem":"Go","name":"github.com/valyala/fasthttp","purl":"pkg:golang/github.com/valyala/fasthttp","ranges":["<1.34.0"],"fixed":["1.34.0"]}]},{"id":"GO-2022-0355","url":"https://osv.dev/vulnerability/GO-2022-0355","summary":"Path traversal in github.com/valyala/fasthttp","modified":"2026-07-08T06:49:38.033511120Z","packages":[{"ecosystem":"Go","name":"github.com/valyala/fasthttp","purl":"pkg:golang/github.com/valyala/fasthttp","ranges":["<1.34.0"],"fixed":["1.34.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}