GitHub Advisoryadvisory · Go

GHSA-fx95-883v-4q4h Path traversal in github.com/valyala/fasthttp

HIGH Published 2022-03-18 Modified 2024-05-20 Official page ↗
Aliases
CVE-2022-21221
Ecosystem
Go
Packages
github.com/valyala/fasthttp
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2022-03-18

Affected packages

• Go github.com/valyala/fasthttp: < 1.34.0 → fixed in 1.34.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2022-21221 The package github.com/valyala/fasthttp before 1.34.0 are vulnerable to Directory Traversal via the ServeFile function, due to improper… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References