Security mailing lists by PureSourceCode

CVE-2021-32742

CRITICAL 9.1CVSS 3.1

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

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

Published
9 Jul 2021
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-502
Also known as
GHSA-pqwh-c2f3-vxmq
Sources
NVDJSONOSV GHSA-pqwh-c2f3-vxmqJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.4 AV:N/AC:L/Au:N/C:P/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD vapor_project vapor
cpe:2.3:a:vapor_project:vapor:*:*:*:*:*:swift:*:*
< 4.47.2 4.47.2
OSV SwiftURL github.com/vapor/vapor < 4.47.2 4.47.2

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 9 Jul 2021)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 9 Jun 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.