CVE-2022-31005
HIGH 7.5CVSS 3.1Vapor vulnerable to denial of service in HTTP Range Request of FileMiddleware
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.
- Published
- 31 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-190
- Also known as
- GHSA-vj2m-9f5j-mpr5
- Sources
- NVDJSONOSV GHSA-vj2m-9f5j-mpr5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vapor | vaporcpe:2.3:a:vapor:vapor:*:*:*:*:*:*:*:* |
< 4.60.3 | 4.60.3 |
| OSV | SwiftURL | github.com/vapor/vapor | < 4.60.3 | 4.60.3 |
References
- https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1 · Patch, Third Party Advisory, WEB
- https://github.com/vapor/vapor/releases/tag/4.60.3 · Release Notes, Third Party Advisory, WEB
- https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31005 · ADVISORY
- https://github.com/vapor/vapor · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 31 May 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 7 Jun 2023)