Live threats

All CVEs / Fasthttp Project

CVE-2022-21221Fasthttp Project Fasthttp

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Mar 17, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Fasthttp.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/valyala/fasthttp < 1.34.0 1.34.0 go get github.com/valyala/fasthttp@v1.34.0
Go github.com/valyala/fasthttp < 1.34.0 1.34.0 go get github.com/valyala/fasthttp@v1.34.0

Per OSV / GitHub Advisories (GHSA-fx95-883v-4q4h, GO-2022-0355). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fasthttp_projectfasthttp< 1.34.0

Official sources

References

Links published by the sources. Open them with care.