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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.11%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-31T19:35:11.000Z
- Modified: 2026-06-17T04:44:35.423Z
- Also known as: GHSA-vj2m-9f5j-mpr5
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vapor vapor: < 4.60.3; before 4.60.3
- github.com/vapor/vapor (SwiftURL): before 4.60.3

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5> (exploit, third-party-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2022-31005> (advisory)
- <https://github.com/vapor/vapor> (package)

## Sources

- CVE List: [CVE-2022-31005](https://www.cve.org/CVERecord?id=CVE-2022-31005), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-vj2m-9f5j-mpr5](https://github.com/advisories/GHSA-vj2m-9f5j-mpr5), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31005](https://nvd.nist.gov/vuln/detail/CVE-2022-31005), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31005 · Whole record: https://cve.day/CVE-2022-31005.json · Rebuilt by cve.day 2026-11-25T22:58:12.014Z
