Path Traversal in Fasthttp Project

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 sanitization. It is possible to be exploited by using a backslash %5c character in the path. **Note:** This security issue impacts Windows users only.

Vulnerability class: Path Traversal (Directory Traversal)

EPSS: 0.025 (83.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.

Affected products

Weakness classification (CWE)

References

  • report@snyk.io (Exploit, Patch, Third Party Advisory, x_refsource_MISC)
  • report@snyk.io (Exploit, Patch, Third Party Advisory, x_refsource_MISC, Issue Tracking)
  • report@snyk.io (Patch, Third Party Advisory, x_refsource_MISC)
  • report@snyk.io (Patch, Third Party Advisory, x_refsource_MISC)
  • report@snyk.io (Third Party Advisory, x_refsource_MISC, Release Notes)

Frequently asked questions

What is CVE-2022-21221?
CVE-2022-21221 is a medium-severity vulnerability in Fasthttp Project, classified under Path Traversal. CVSS score: 5.9/10. Published 2022-03-17.
How severe is CVE-2022-21221?
Medium severity. CVSS v3 base score is 5.9 out of 10.