CVE-2021-32742
mediumpriority · track · 36EPSS 0.012 · 68 %ileEUUSEPSS · scored 2026-10-27
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:)`.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6.4–9.1
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-pqwh-c2f3-vxmqUntrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash2023-06-09ghsa · osvUS
### Impact A 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. ### Patches This issue has been patched in 4.47.2. ### Workarounds Use an alternative to Vapor's built-in `Data.init(base32Encoded:)`. ### For more information If you have any questions or comments about this advisory: * Open an issue in [Vapor](https://github.com/vapor/vapor) * Ask in [Discord](http://vapor.team)
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/vapor/vapor/releases/tag/4.47.2cnnvd
- https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmqcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-32742cnnvd
- https://github.com/vapor/vapor/releases/tag/4.47.2enisa_euvd
- https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmqenisa_euvd
- https://github.com/vapor/vapor/releases/tag/4.47.2Release NotesThird Party Advisorynvd
- https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmqThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan