{"id":"CVE-2022-21221","published":"2022-03-17T11:21:09Z","modified":"2024-09-16T18:34:58Z","title":"Directory Traversal","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02496,"percentile":0.85071,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866","tags":["x_refsource_MISC"]},{"url":"https://github.com/valyala/fasthttp/issues/1226","tags":["x_refsource_MISC"]},{"url":"https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1","tags":["x_refsource_MISC"]},{"url":"https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8","tags":["x_refsource_MISC"]},{"url":"https://github.com/valyala/fasthttp/releases/tag/v1.34.0","tags":["x_refsource_MISC"]}],"priority":{"score":21.1,"factors":[{"name":"EPSS percentile","points":17.01},{"name":"CVSS severity","points":4.13}]},"affectedVersions":[{"vendor":"n/a","product":"github.com/valyala/fasthttp","versions":[">= unspecified, < 1.34.0"]}],"affected":[{"ecosystem":"Go","package":"github.com/valyala/fasthttp","vulnerableRanges":["<1.34.0"],"patched":["1.34.0"],"from":["GHSA-fx95-883v-4q4h","GO-2022-0355"],"provenance":"source"}],"summary":{"text":"The flaw is a directory traversal issue in the ServeFile function of the Go package github.com/valyala/fasthttp, in versions before 1.34.0, caused by improper sanitization of paths. It affects only Windows deployments. An attacker with network access can read files outside the intended directory by including a backslash (%5c) in the requested path, and no authentication or user interaction is required, though exploitation is noted as having high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:56Z"},"euvd":{"id":"EUVD-2022-1419","exploited":false,"provenance":"source"}}