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.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://github.com/vapor/vapor/security/advisories/GHSA-vj2m-9f5j-mpr5 | third party advisory exploit |
https://github.com/vapor/vapor/commit/953a349b539b3e0d3653585c8ffb50c427986df1 | third party advisory patch |
https://github.com/vapor/vapor/releases/tag/4.60.3 | third party advisory release notes |