{"id":"CVE-2022-31005","published":"2022-05-31T19:35:11Z","modified":"2025-04-22T17:55:35Z","title":"Integer Overflow in Vapor's HTTP Range Request","vendor":"vapor","product":"vapor","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01751,"percentile":0.78299,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1","tags":["x_refsource_MISC"]},{"url":"https://github.com/vapor/vapor/releases/tag/4.60.3","tags":["x_refsource_MISC"]}],"priority":{"score":20.9,"factors":[{"name":"EPSS percentile","points":15.66},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"vapor","affectedVersions":[{"vendor":"vapor","product":"vapor","versions":["< 4.60.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-22T15:41:04.527923Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"SwiftURL","package":"github.com/vapor/vapor","vulnerableRanges":["<4.60.3"],"patched":["4.60.3"],"from":["GHSA-vj2m-9f5j-mpr5"],"provenance":"source"}],"summary":{"text":"The vulnerability is an integer overflow in the HTTP range request handling of Vapor, a Swift HTTP web framework, affecting versions prior to 4.60.3 when FileMiddleware is enabled. An unauthenticated remote attacker with network access can send a crafted request that triggers the overflow and crashes the application, requiring no user interaction and no special configuration beyond FileMiddleware being enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:01:26Z"},"euvd":{"id":"EUVD-2023-1891","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15230","published":"2020-10-02","fixed":"4.29.4","kev":false},{"cve":"CVE-2021-21328","published":"2021-02-26","fixed":"4.40.1","kev":false},{"cve":"CVE-2021-32742","published":"2021-07-09","fixed":"4.47.2","kev":false,"link":{"from":"CVE-2021-32742","to":"CVE-2022-31005","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"SwiftURL:github.com/vapor/vapor","fromFixed":"4.47.2","toFixed":"4.60.3","daysApart":326}]}},{"cve":"CVE-2022-31005","published":"2022-05-31","fixed":"4.60.3","kev":false},{"cve":"CVE-2022-31019","published":"2022-06-06","fixed":"4.61.1","kev":false,"link":{"from":"CVE-2022-31005","to":"CVE-2022-31019","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"SwiftURL:github.com/vapor/vapor","fromFixed":"4.60.3","toFixed":"4.61.1","daysApart":6}]}},{"cve":"CVE-2023-44386","published":"2023-10-05","fixed":"4.84.2","kev":false},{"cve":"CVE-2024-21631","published":"2024-01-03","fixed":"4.90.0","kev":false}],"package":"SwiftURL:github.com/vapor/vapor"}}