CVE-2022-31005 json
Integer Overflow in Vapor's HTTP Range Request
published 2022-05-31 4 y ago modified 2026-06-17 4 mo ago also EUVD-2023-1891 , GHSA-vj2m-9f5j-mpr5
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- swift github.com/vapor/vapor 4.60.3
- vapor vapor 4.60.3
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
2.11% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| swift | github.com/vapor/vapor | <4.60.3 |
4.60.3 |
Affected products
- vapor vapor
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1
web, patch, third-party-advisory
-
github.com
/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5
web, exploit, third-party-advisory
-
github.com
/vapor/vapor/releases/tag/4.60.3
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31005
advisory
-
github.com
/vapor/vapor
package
Sources
- CVE List CVE-2022-31005
- GitHub Advisory GHSA-vj2m-9f5j-mpr5
- NVD CVE-2022-31005
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.