Advisory

GHSA-fx95-883v-4q4h

Also known as: CVE-2022-21221, GO-2022-0355, SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866

Summary

Path traversal in github.com/valyala/fasthttp

Details

The package github.com/valyala/fasthttp before 1.34.0 is 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-18 00:01 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences