CVE-2021-32742: Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash
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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2021-32742?
CVE-2021-32742 is classified as a high severity vulnerability due to its potential to expose server memory and cause denial-of-service attacks.
How do I fix CVE-2021-32742?
To fix CVE-2021-32742, upgrade to Vapor version 4.47.2 or later.
What versions of Vapor are affected by CVE-2021-32742?
Vapor versions 4.47.1 and prior are affected by CVE-2021-32742.
What kind of attacks can CVE-2021-32742 lead to?
CVE-2021-32742 can lead to server memory exposure and denial-of-service (DoS) attacks.
Is user input a factor in CVE-2021-32742?
Yes, untrusted user input can trigger the vulnerability in the Data.init(base32Encoded:) function.