GHSA-vj2m-9f5j-mpr5
Dashboard / Vulnerabilities / GHSA-vj2m-9f5j-mpr5
Summary: Vapor vulnerable to denial of service in HTTP Range Request of FileMiddleware
Details: 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: https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5, https://nvd.nist.gov/vuln/detail/CVE-2022-31005, https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1, https://github.com/vapor/vapor, https://github.com/vapor/vapor/releases/tag/4.60.3
Affected packages
Package
Name: github.com/vapor/vapor
Purl: pkg:swift/github.com/vapor/vapor
Affected ranges
Type: SEMVER
Events:
