high7.5
CVE-2022-31005
Vapor vulnerable to denial of service in HTTP Range Request of FileMiddleware
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| swift | github.com/vapor/vapor | < 4.60.3 | 4.60.3 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Vapor | Vapor | before 4.60.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1
- https://github.com/vapor/vapor/releases/tag/4.60.3
- https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5
- https://github.com/advisories/GHSA-vj2m-9f5j-mpr5
- https://nvd.nist.gov/vuln/detail/CVE-2022-31005