{"id":"CVE-2021-32742","aliases":["CVE-2021-32742","GHSA-pqwh-c2f3-vxmq"],"related":[],"kind":"vulnerability","state":"published","title":"Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash","summary":"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:)`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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:)`.","source":"cvelist"},{"lang":"en","text":"### Impact\nA 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.\n\n### Patches\nThis issue has been patched in 4.47.2.\n\n### Workarounds\nUse an alternative to Vapor's built-in `Data.init(base32Encoded:)`.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Vapor](https://github.com/vapor/vapor)\n* Ask in [Discord](http://vapor.team)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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:)\"","source":"nvd"}],"published":"2021-07-09T14:00:11.000Z","modified":"2026-07-08T06:29:25.268Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"<= 4.47.1","status":"affected"}],"vendor":"vapor","product":"vapor","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.47.2"}],"ecosystem":"SwiftURL","package":"github.com/vapor/vapor","purl":"pkg:swift/github.com/vapor/vapor","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.47.2"}],"vendor":"vapor_project","product":"vapor","cpe":"cpe:2.3:a:vapor_project:vapor:*:*:*:*:*:swift:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vapor/vapor/releases/tag/4.47.2","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32742","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vapor/vapor","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32742","url":"https://www.cve.org/CVERecord?id=CVE-2021-32742","licence":"CVE Terms of Use","modified":"2024-08-03T23:33:54.911Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pqwh-c2f3-vxmq","url":"https://github.com/advisories/GHSA-pqwh-c2f3-vxmq","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:25.268Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32742","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32742","licence":"Public domain","modified":"2026-06-17T03:53:32.430Z"}],"updatedAt":"2026-11-25T22:58:02.493Z","epss":{"score":0.01199,"percentile":0.69009,"date":"2026-12-01T12:00:22.000Z"}}