CVE-2021-32742
Vapor Project Vapor vulnerability
Vapor is a web framework for Swift. In versions 4.47.1 and prior, bug in the `Data.init(base32Encoded:)` function opens up the potential for exposing server memory and/or crashing the server (Denial of Service) for applications where untrusted data can end up in said function. Vapor does not currently use this function itself so this only impact applications that use the impacted function directly or through other dependencies. The vulnerability is patched in version 4.47.2. As a workaround, one may use an alternative to Vapor's built-in `Data.init(base32Encoded:)`.
Affected products
Vapor. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vapor Project Vapor runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/vapor/vapor/releases/tag/4.47.2 · Third Party Advisory
- github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-32742
- cve.org/CVERecord?id=CVE-2021-32742
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.