{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-21221","published":"2022-03-17T12:15:08.087000Z","last_modified":"2026-06-17T04:25:46.757000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:fasthttp_project:fasthttp:*:*:*:*:*:*:*:*","part":"a","vendor":"fasthttp_project","product":"fasthttp","version_end_excluding":"1.34.0"}],"cpes_truncated":false,"vendors":["fasthttp_project"],"products":["fasthttp_project/fasthttp"],"epss":{"score":0.02395,"percentile":0.84749,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-fx95-883v-4q4h","ecosystem":"Go","name":"github.com/valyala/fasthttp","purl":"pkg:golang/github.com/valyala/fasthttp","ranges":[{"introduced":"0","fixed":"1.34.0"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2022-0355","ecosystem":"Go","name":"github.com/valyala/fasthttp","purl":"pkg:golang/github.com/valyala/fasthttp","ranges":[{"introduced":"0","fixed":"1.34.0"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2022-21221/","html_en":"/en/cve/CVE-2022-21221/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21221","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21221"},"untrusted":{"vendor_name":"Fasthttp Project","product_name":"Fasthttp","desc_en":"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":[],"references":[{"url":"https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/valyala/fasthttp/issues/1226","tags":["Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/valyala/fasthttp/releases/tag/v1.34.0","tags":["Release Notes","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866","tags":["Exploit","Patch","Third Party Advisory"]}]}}