CVE-2022-21221

HIGHCVSS 7.5/10EPSS 2.46%

Last modified

CVE-2022-21221 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 2.46% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.5/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS Probability
2.46%

82.4th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
Fasthttp ProjectFasthttp< 1.34.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2022-21221?
CVE-2022-21221 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 2.46% probability of exploitation in the next 30 days.
How do I fix CVE-2022-21221?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-21221?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST