🛡️ CVE-2022-21221 — fasthttp

🟠 CVSS 8.0 — High ⚠️ Exploit Public CWE-22 NVD
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Path traversal in github.com/valyala/fasthttp

The fasthttp.FS request handler is vulnerable to directory traversal attacks on Windows systems, and can serve files from outside the provided root directory.

URL path normalization does not handle Windows path separators (backslashes), permitting an attacker to construct requests with relative paths.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.

Weakness class

CVE-2022-21221 is classified as CWE-22: Path Traversal. A file path built from user input is not confined to the intended directory, letting an attacker reach files elsewhere on the filesystem.

Affected software

CVE-2022-21221 is recorded against 2 packages.

  • fasthttp (fixed in 1.34.0)
  • github.com/valyala/fasthttp

Timeline and source

Published on 17 March 2022 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com
github.com
github.com
github.com
snyk.io
github.com
github.com
github.com
github.com
snyk.io

Details

Severity MEDIUM
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE CWE-22
Public Exploit ⚠️ Yes
Source NVD
Published 2022-03-17
Updated 2026-08-12
Modified 2026-06-17

Affected Packages

Software From version Fixed in
fasthttp 1.34.0
github.com/valyala/fasthttp

References

Exploit, Issue Tracking, Patch, Third Party Advisory https://github.com/valyala/fasthttp/issues/1226
Release Notes, Third Party Advisory https://github.com/valyala/fasthttp/releases/tag/v1.34.0
Exploit, Issue Tracking, Patch, Third Party Advisory https://github.com/valyala/fasthttp/issues/1226
Release Notes, Third Party Advisory https://github.com/valyala/fasthttp/releases/tag/v1.34.0

Similar Threats

Exploit Protection

Are you running fasthttp?

CVE-2022-21221 carries CVSS 8.0 High rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2022-21221 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.