
Cloud Vulnerability DB
A community-led vulnerabilities database
Vapor, a web framework for Swift, contained a vulnerability (CVE-2021-32742) in versions 4.47.1 and prior. The vulnerability was discovered in the Data.init(base32Encoded:) function, which could potentially expose server memory and cause denial of service conditions when processing untrusted data. The issue was patched in version 4.47.2, released on July 9, 2021 (Vapor Release, GitHub Advisory).
The vulnerability stems from improper handling of base32 encoded data in the Data.init(base32Encoded:) function. When untrusted data is passed to this function, it could lead to memory exposure and server crashes. The vulnerability received a CVSS v3.1 base score of 9.1 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H. The weakness was classified as CWE-502 (Deserialization of Untrusted Data) (NVD).
The vulnerability could result in two primary impacts: exposure of server memory contents and potential denial of service through server crashes. It's important to note that Vapor itself did not use this function directly, limiting the impact to applications that specifically implemented the affected function either directly or through dependencies (GitHub Advisory).
The vulnerability is exploitable when untrusted data can be passed to the Data.init(base32Encoded:) function. The low attack complexity (AC:L) and no requirements for privileges (PR:N) or user interaction (UI:N) make this vulnerability relatively straightforward to exploit if an application uses the affected function (NVD).
The vulnerability was patched in Vapor version 4.47.2. For users unable to update immediately, the recommended workaround is to use an alternative to Vapor's built-in Data.init(base32Encoded:) function (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."