CVE-2022-31005: Integer Overflow in Vapor's HTTP Range Request

Published May 31, 2022
·
Updated

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

1 affected component
Vapor Vapor<4.60.3

Event History

May 31, 2022
CVE Published
via MITRE·07:35 PM
Data Sourced
via MITRE·07:35 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

How does CVE-2022-31005 affect Vapor?

CVE-2022-31005 affects Vapor versions prior to 4.60.3 with FileMiddleware enabled.

3

What is the severity of CVE-2022-31005?

The severity of CVE-2022-31005 is high with a CVSS score of 7.5.

4

How can I fix CVE-2022-31005?

To fix CVE-2022-31005, update Vapor to version 4.60.3 or later and disable FileMiddleware.

5

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)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203