What’s Vulnerable › Vulnerabilities
CVE-2021-32742: Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-07-09 · updated 2026-06-17
- Weakness: CWE-502
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
- Vapor Project Vapor: before 4.47.2 — fixed in 4.47.2
How to fix
Upgrade to a fixed version: Vapor Project Vapor 4.47.2. Check the vendor advisory for mitigations.
References
- https://github.com/vapor/vapor/releases/tag/4.47.2
- https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq
- https://github.com/vapor/vapor/releases/tag/4.47.2
- https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq
Get alerted when CVE-2021-32742 or the next vulnerability affects your stack