Path traversal in fasthttp - CVE-2022-21221

 

Path traversal in fasthttp - CVE-2022-21221

Published: March 27, 2024


Vulnerability identifier: #VU87847
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-21221
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: valyala
Affected software:
fasthttp

Detailed vulnerability description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to insufficient sanitization of user-supplied passed via the ServeFile function. A remote attacker can use a backslash %5c character in the path and read contents of arbitrary files on the system.


How to mitigate CVE-2022-21221

Cybersecurity Help is currently unaware of any official solution to address this vulnerability..

Sources