Vulnerability

CVE-2022-21221
CVSS Score 7.5 high

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CWE

CWE-22

[CVE-2022-21221] CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

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.

See github.com/valyala/fasthttp package information