{"id":"CVE-2021-32742","published":"2021-07-09T14:00:11Z","modified":"2024-08-03T23:33:54Z","title":"Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash","vendor":"vapor","product":"vapor","tier":"tail","description":{"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:)`.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01199,"percentile":0.68906,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vapor/vapor/releases/tag/4.47.2","tags":["x_refsource_MISC"]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":13.78},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"vapor","affectedVersions":[{"vendor":"vapor","product":"vapor","versions":["<= 4.47.1"]}],"affected":[{"ecosystem":"SwiftURL","package":"github.com/vapor/vapor","vulnerableRanges":["<4.47.2"],"patched":["4.47.2"],"from":["GHSA-pqwh-c2f3-vxmq"],"provenance":"source"}],"summary":{"text":"The flaw is in the Data.init(base32Encoded:) function of the Vapor web framework for Swift, a bug that affects applications passing untrusted data into that function, whether directly or through other dependencies. An attacker who can supply such untrusted input to an application that calls this function can expose server memory or crash the server, with the attack requiring network access, low privileges, and a high-complexity condition, and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:18:02Z"},"euvd":{"id":"EUVD-2023-1859","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15230","published":"2020-10-02","fixed":"4.29.4","kev":false},{"cve":"CVE-2021-21328","published":"2021-02-26","fixed":"4.40.1","kev":false,"link":{"from":"CVE-2021-21328","to":"CVE-2021-32742","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"SwiftURL:github.com/vapor/vapor","fromFixed":"4.40.1","toFixed":"4.47.2","daysApart":133}]}},{"cve":"CVE-2021-32742","published":"2021-07-09","fixed":"4.47.2","kev":false},{"cve":"CVE-2022-31005","published":"2022-05-31","fixed":"4.60.3","kev":false,"link":{"from":"CVE-2021-32742","to":"CVE-2022-31005","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"SwiftURL:github.com/vapor/vapor","fromFixed":"4.47.2","toFixed":"4.60.3","daysApart":326}]}},{"cve":"CVE-2022-31019","published":"2022-06-06","fixed":"4.61.1","kev":false},{"cve":"CVE-2023-44386","published":"2023-10-05","fixed":"4.84.2","kev":false}],"package":"SwiftURL:github.com/vapor/vapor"}}