Path Traversal in Fasthttp Project
CVE-2022-21221
- CVSS v3
- 5.9 Medium
- Public exploits
- None known
- EPSS
- 0.025 · 85.1th percentile
- Published
- 2022-03-17
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- High
AC:H - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- None
I:N - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.025, 85.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Fasthttp Project
- Github.com/valyala/fasthttp — versions unspecified
Weakness classification (CWE)
References
- snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866 (Exploit, Patch, Third Party Advisory)
- github.com/valyala/fasthttp/issues/1226 (Exploit, Patch, Third Party Advisory, Issue Tracking)
- github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1 (Patch, Third Party Advisory)
- github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8 (Patch, Third Party Advisory)
- github.com/valyala/fasthttp/releases/tag/v1.34.0 (Third Party Advisory, Release Notes)