VulnerabilityModified
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.
HIGH 7.5EPSS 2.50%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.50%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 2.50% probability · 84th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-22
- Affected
- fasthttp project/fasthttp
- Source
- report@snyk.io
References
- https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/issues/1226Exploit, Issue Tracking, Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/releases/tag/v1.34.0Release Notes, Third Party Advisory
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866Exploit, Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/issues/1226Exploit, Issue Tracking, Patch, Third Party Advisory
- https://github.com/valyala/fasthttp/releases/tag/v1.34.0Release Notes, Third Party Advisory
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866Exploit, Patch, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.