CVE-2021-32742CWE-502

Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash

High · published July 9, 2021

CVSS v3.1
7.5
EPSS
1%
Percentile
67.9
In the wild
Unconfirmed
What it is

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:)`.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01199 · 67.9th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2021-07-09T14:00Z
EPSS history
Timeline
  • 09 JUL 14:00Z
    Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash
    cvelistv5