CVE-2022-21221
Last modified
CVE-2022-21221 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 2.46% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Fasthttp Project | Fasthttp | < 1.34.0 |
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
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-21221?
How severe is CVE-2022-21221?
How do I fix CVE-2022-21221?
Are you affected by CVE-2022-21221?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
