CVE-2022-21221

Medium

Description

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.

SeverityMedium
CVSS5.9
Exploit probability—
ProductFasthttp
PublishedMar 17, 2022
First seenMar 17, 2022

How to fix

Update
  • fasthttp_project fasthttp1.34.0 or later
  • github.com/valyala/fasthttp1.34.0 or later

Affected products

ProductAffected versionsFixed in
fasthttp_project fasthttpv < 1.34.01.34.0
github.com/valyala/fasthttpGov < 1.34.01.34.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2022-21221 · Fasthttp · Dark Radar