Skip to content

CVE-2022-21221 Directory Traversal

HighCVSS 7.5 EPSS 2.5%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
fasthttp project fasthttp < 1.34.0 1.34.0 Fixed
valyala github.com/valyala/fasthttp(Go) < 1.34.0 1.34.0 Fixed

Affected products

ProductAffected versionsFixed in
valyala github.com/valyala/fasthttp(Go) < 1.34.0 1.34.0
fasthttp project fasthttp < 1.34.0 1.34.0

References