What’s Vulnerable › Vulnerabilities

CVE-2022-21221: Directory Traversal

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.

Affected products

How to fix

Upgrade to a fixed version: github.com/valyala/fasthttp 1.34.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-21221 or the next vulnerability affects your stack