Directory traversal in github.com/valyala/fasthttp
Priority LOW 38CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
EPSS 0.02496 84th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed github.com/valyala/fasthttp: 1.34.0github.com/valyala/fasthttp (Go): 1.34.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/valyala/fasthttp | before 1.34.0 | 1.34.0 | Patch available | CNA |
| — | github.com/valyala/fasthttp (Go) | before 1.34.0 | 1.34.0 | Patch available | GHSA-fx95-883v-4q4h |
- github.com/valyala/fasthttp Vendor— Affected before 1.34.0 Fixed in 1.34.0 Patch available CNA
- github.com/valyala/fasthttp (Go) Vendor— Affected before 1.34.0 Fixed in 1.34.0 Patch available GHSA-fx95-883v-4q4h
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:fasthttp_project:fasthttp:*:*:*:*:*:*:*:* | before 1.34.0 | Vulnerable | Fasthttp Project |
| cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Microsoft |
- cpe:2.3:a:fasthttp_project:fasthttp:*:*:*:*:*:*:*:* Versions before 1.34.0 Vulnerable ·Fasthttp Project
- cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft
Remediation
- Fix · CNA github.com/valyala/fasthttp Fixed in 1.34.0
- Fix · GHSA-fx95-883v-4q4h github.com/valyala/fasthttp (Go) Fixed in 1.34.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21221
- 2026-10-03 Alias added: GHSA-fx95-883v-4q4h
References
Patch 2
Advisory 2
Sources
- CVE-2022-21221 · CVE Program
- CVE-2022-21221 · NVD
- FIRST EPSS
- GHSA-fx95-883v-4q4h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences