CVE-2022-21221Fasthttp Project Fasthttp
High 7.5 No auth needed
Follow: this CVE · Fasthttp Project · Fasthttp Project Fasthttp We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Mar 17, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Fasthttp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/valyala/fasthttp |
< 1.34.0 |
1.34.0 |
go get github.com/valyala/fasthttp@v1.34.0 |
| Go | github.com/valyala/fasthttp |
< 1.34.0 |
1.34.0 |
go get github.com/valyala/fasthttp@v1.34.0 |
Per OSV / GitHub Advisories (GHSA-fx95-883v-4q4h, GO-2022-0355). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| fasthttp_project | fasthttp | < 1.34.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Issue Tracking Patch
- github.com Release Notes Third Party Advisory
- snyk.io Exploit Patch Third Party Advisory