GitHub Advisoryadvisory · SwiftURL

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

MEDIUM Published 2023-06-09 Modified 2023-06-09 Official page ↗
Aliases
CVE-2021-32742
Ecosystem
SwiftURL
Packages
github.com/vapor/vapor
Severity
Moderate
Weaknesses
CWE-502
Reviewed
2023-06-09

Affected packages

• SwiftURL github.com/vapor/vapor: < 4.47.2 → fixed in 4.47.2

Description

Impact A 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. Patches This issue has been patched in 4.47.2. Workarounds Use an alternative to Vapor's built-in `Data.init(base32Encoded:)`. For more information If you have any questions or comments about this advisory: • Open an issue in Vapor • Ask in Discord

Related

Alias · CVE (1)

Weakness · CWE (1)

  • CWE-502 Deserialization of Untrusted Data weakness

References