All reports
High

Path traversal in github.com/valyala/fasthttp

Affected versions

Version ranges need review.

Affected versions
< 1.34.0
Fixed version
1.34.0
Affected versions
<1.34.0
Fixed version
1.34.0

Exploitation

CVE-2022-21221

Probability of exploitation in the next 30 days: 2.50%

FIRST EPSS · 2026-11-23

Description

The package github.com/valyala/fasthttp before 1.34.0 is 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.

Links

Credits

  • egovorukhin