Skip to content

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

CriticalCVSS 9.1 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known

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

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
swifturl github.com/vapor/vapor(SwiftURL) < 4.47.2 4.47.2 Fixed
vapor project vapor < 4.47.2 4.47.2 Fixed
vapor = <= 4.47.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
swifturl github.com/vapor/vapor(SwiftURL) < 4.47.2 4.47.2
vapor project vapor < 4.47.2 4.47.2
vapor = <= 4.47.1 No fix listed

References