ADVISORIES

Go Vulnerability Database

GO-2022-0355

Path traversal in github.com/valyala/fasthttp

Details

The fasthttp.FS request handler is vulnerable to directory traversal attacks on Windows systems, and can serve files from outside the provided root directory.

URL path normalization does not handle Windows path separators (backslashes), permitting an attacker to construct requests with relative paths.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/valyala/fasthttp
All versions before 1.34.0 (fixed in 1.34.0)

References