Advisory record · GHSA-fx95-883v-4q4h

Path traversal in github.com/valyala/fasthttp

CVSS 5.9 MediumEPSS 0.025 · 85th percentile

Published by the GitHub Advisory Database at 18 Mar 2022, 00:01 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/valyala/fasthttpGo<1.34.01.34.0
Identifiers
GHSA-fx95-883v-4q4h · CVE-2022-21221 · GO-2022-0355 · SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866
Weakness (CWE)
CWE-22
Published
18 Mar 2022
Updated
8 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The github.com/valyala/fasthttp package before 1.34.0 is vulnerable to directory traversal through its ServeFile function, caused by improper sanitization of paths containing an encoded backslash. An attacker can exploit this to access files outside the intended directory, but only on Windows systems. Upgrade to version 1.34.0 or later.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.9 Medium 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CNA (snyk)
  • CISA KEV Not listed.
  • EPSS 0.025, the 85th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:05 UTC First seen by agentprime
  2. 31 Oct 2026, 15:05 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.