CVE-2022-31005

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.

Severity
HIGH
CVSS v3
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H · source cna
Exploit chance (EPSS)
2.108%
chance of exploitation in the next 30 days
higher than 82.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableyes
Technical impactpartial
Scored2025-04-22

Timeline

  1. 2022-05-31Published by the CNA19:35 UTC
  2. 2023-06-07GitHub advisory published (GHSA-vj2m-9f5j-mpr5)372 days after publication
  3. 2025-04-22CISA SSVC decision recorded1057 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-vj2m-9f5j-mpr5, affected packages:

PackageVulnerable versionsFixed in
SwiftURL github.com/vapor/vaporbefore 4.60.34.60.3

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
vapor vaporbefore 4.60.3fixed in 4.60.34.60.3

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources