CVE-2022-31005
mediumpriority · track · 31EPSS 0.021 · 82 %ileEUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-vj2m-9f5j-mpr5Vapor vulnerable to denial of service in HTTP Range Request of FileMiddleware2023-06-07ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-31005/cnnvd
- https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1cnnvd
- https://github.com/vapor/vapor/releases/tag/4.60.3cnnvd
- https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5cnnvd
- https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1enisa_euvd
- https://github.com/vapor/vapor/releases/tag/4.60.3enisa_euvd
- https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5enisa_euvd
- https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1PatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan