Vulnerability · Published Jul 9, 2021 · Assigned by GitHub_M
CVE-2021-32742Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash
High 7.5
In plain English
A high-severity unsafe deserialization in vapor from vapor. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities).
Official description
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 (as reported)
Weakness: CWE-502 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq x_refsource_CONFIRM
- https://github.com/vapor/vapor/releases/tag/4.47.2 x_refsource_MISC