Path Traversal in Fasthttp Project
CVE-2022-21221
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.
EPSS exploit prediction
EPSS: 0.025 (84.1th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 84th percentile — 84.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.025 · newest: 0.025 · change: 0.000
Affected products
- Fasthttp Project
- Microsoft Windows
- 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)
Frequently asked questions
- What is CVE-2022-21221?
- CVE-2022-21221 is a medium-severity vulnerability in Fasthttp Project, classified under Path Traversal. CVSS score: 5.9/10. Published 2022-03-17.
- How severe is CVE-2022-21221?
- Medium severity. CVSS v3 base score is 5.9 out of 10.