CVE-2022-21221

MEDIUM

fasthttp < 1.34.0 - Directory Traversal via Backslash Character in ServeFile Path

Title source: llm
STIX 2.1

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.

References (5)

Core 5
Core References
Exploit, Patch, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866
Exploit, Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/valyala/fasthttp/issues/1226
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/valyala/fasthttp/releases/tag/v1.34.0

Scores

CVSS v3 5.9
EPSS 0.0246
EPSS Percentile 82.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Details

CWE
CWE-22
Status published
Products (2)
fasthttp_project/fasthttp < 1.34.0
valyala/fasthttp 0 - 1.34.0Go
Published Mar 17, 2022
Tracked Since Feb 18, 2026