CVEvulnerability
CVE-2022-21221
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-03-17
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.9 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-22
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.
Affected configurations
• fasthttp project fasthttp (< 1.34.0)
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8 Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1 Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/issues/1226 Exploit, Issue Tracking, Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/releases/tag/v1.34.0 Release Notes, Third Party Advisory
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866 Exploit, Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8 Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1 Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/issues/1226 Exploit, Issue Tracking, Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/releases/tag/v1.34.0 Release Notes, Third Party Advisory
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866 Exploit, Patch, Third Party Advisory