Medium severity5.9NVD Advisory· Published Mar 17, 2022· Updated Jun 17, 2026
CVE-2022-21221
CVE-2022-21221
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/valyala/fasthttpGo | < 1.34.0 | 1.34.0 |
Affected products
2- github.com/valyala/fasthttpdescription
Patches
Vulnerability mechanics
References
8- github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8nvdPatchThird Party AdvisoryWEB
- github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1nvdPatchThird Party AdvisoryWEB
- github.com/valyala/fasthttp/issues/1226nvdExploitIssue TrackingPatchThird Party AdvisoryWEB
- snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866nvdExploitPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-fx95-883v-4q4hghsaADVISORY
- github.com/valyala/fasthttp/releases/tag/v1.34.0nvdRelease NotesThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-21221ghsaADVISORY
- pkg.go.dev/vuln/GO-2022-0355ghsaWEB
News mentions
0No linked articles in our index yet.