{"id":"CVE-2022-31005","aliases":["GHSA-vj2m-9f5j-mpr5"],"url":"https://o3.security/vulnerability/CVE-2022-31005","summary":"Integer Overflow in Vapor's HTTP Range Request","details":"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. \n\nVapor 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.","published":"2022-05-31T19:35:11Z","modified":"2026-08-12T03:51:20.748675838Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":{"score":0.02076,"percentile":0.79765,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"SwiftURL","name":"github.com/vapor/vapor","fixedVersion":"4.60.3"}],"fix":{"url":"https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1","label":"vapor/vapor@953a349"},"references":[{"type":"WEB","url":"https://github.com/vapor/vapor/releases/tag/4.60.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31005.json"},{"type":"ADVISORY","url":"https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31005"},{"type":"FIX","url":"https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1"},{"type":"PACKAGE","url":"https://github.com/vapor/vapor"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:20.748675838Z"}}