CVE-2022-31005: Integer Overflow in Vapor's HTTP Range Request
Vapor is an HTTP web framework for Swift. Users of Vapor prior to version 4.60.3 with FileMiddleware enabled are vulnerable to an integer overflow vulnerability that can crash the application. Version 4.60.3 contains a patch for this issue. As a workaround, disable FileMiddleware and serve via a Content Delivery Network.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2022-31005?
CVE-2022-31005 is an integer overflow vulnerability in Vapor, an HTTP web framework for Swift, that can crash the application.
How does CVE-2022-31005 affect Vapor?
CVE-2022-31005 affects Vapor versions prior to 4.60.3 with FileMiddleware enabled.
What is the severity of CVE-2022-31005?
The severity of CVE-2022-31005 is high with a CVSS score of 7.5.
How can I fix CVE-2022-31005?
To fix CVE-2022-31005, update Vapor to version 4.60.3 or later and disable FileMiddleware.
Where can I find more information about CVE-2022-31005?
More information about CVE-2022-31005 can be found in the following references: [Reference 1](https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1), [Reference 2](https://github.com/vapor/vapor/releases/tag/4.60.3), [Reference 3](https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5)