7.5high
Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.20% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pqwh-c2f3-vxmq
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
| Product or package | Versions | Reported by |
|---|---|---|
| vapor vapor | <= 4.47.1 | CVE List |
| github.com/vapor/vapor (SwiftURL) | before 4.47.2 | GitHub Advisory Database |
| vapor_project vapor | before 4.47.2 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | medium rating | |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 6.4medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
Classification
What each source says
CVE List
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:)`.
GitHub Advisory Database
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:
NVD (es)
Vapor es un framework web para Swift. En las versiones 4.47.1 y anteriores, un bug en la función "Data.init(base32Encoded:)" abre el potencial para exponer la memoria del servidor y/o de bloquear el servidor (Denegación de Servicio) para aplicaciones en las que datos no confiables pueden terminar en dicha función. Vapor no usa actualmente esta función por sí mismo, por lo que esto sólo afecta a las aplicaciones que usan la función impactada directamente o mediante otras dependencias. La vulnerabilidad está parcheada en la versión 4.47.2. Como solución alternativa, se puede usar una alternativa a la función incorporada de Vapor "Data.init(base32Encoded:)"
References
| https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq | third-party-advisory, web | |
| https://github.com/vapor/vapor/releases/tag/4.47.2 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-32742 | advisory | |
| https://github.com/vapor/vapor | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32742 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pqwh-c2f3-vxmq changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-32742 changed 2026-06-17 | Public domain |