~ / search / GHSA-vj2m-9f5j-mpr5

GHSA-vj2m-9f5j-mpr5

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

Source: GitHub Advisory Database (reviewed) High CVE-2022-31005

Packages

EcosystemPackageAffectedFixed in
SwiftURL github.com/vapor/vapor < 4.60.3 4.60.3

Details

As written in the advisory (Markdown source, shown as plain text).

Vapor is an HTTP web framework for Swift and [middleware](https://docs.vapor.codes/advanced/middleware/) is a logic chain between the client and a Vapor route handler. [FileMiddleware](https://docs.vapor.codes/advanced/middleware/#file-middleware) 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.

References

External links from the advisory. They lead to third-party sites.