All reports
High

Vapor vulnerable to denial of service in HTTP Range Request of FileMiddleware

Affected versions

Affected versions
< 4.60.3
Fixed version
4.60.3

Exploitation

CVE-2022-31005

Probability of exploitation in the next 30 days: 2.11%

FIRST EPSS · 2026-11-23

Description

Vapor is an HTTP web framework for Swift and middleware is a logic chain between the client and a Vapor route handler. FileMiddleware enables the serving of assets from the Public folder of a project to the client.

Vapor before 4.60.3 is vulnerable to denial of service due to an integer overflow when given invalid range headers while using FileMiddleware. This is patched in 4.60.3.

Links

Credits

  • weissi