Advisory

GO-2022-0355

Also known as: CVE-2022-21221, GHSA-fx95-883v-4q4h, SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866

Summary

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.

Severity

Not rated by the source.

Dates

Published
2022-07-27 20:26 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

github.com/valyala/fasthttp

Go · All systems

Affected

  • introduced 0, fixed 1.34.0 (semver)

Fixed versions

1.34.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences