Read the docs
TI-2022-05614 Aliases CVE-2022-21221GHSA-fx95-883v-4q4h

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

VendorProductAffected versionsFixed inStatusSource
—github.com/valyala/fasthttpbefore 1.34.01.34.0Patch availableCNA
—github.com/valyala/fasthttp (Go)before 1.34.01.34.0Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:fasthttp_project:fasthttp:*:*:*:*:*:*:*:*before 1.34.0VulnerableFasthttp Project
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*not specified by NVDRunning onMicrosoft
  • 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

  1. 2026-10-02 Threatist record created from CVE-2022-21221
  2. 2026-10-03 Alias added: GHSA-fx95-883v-4q4h

References

Sources