Lucene search

K
githubGitHub Advisory DatabaseGHSA-PQWH-C2F3-VXMQ
HistoryJun 09, 2023 - 7:31 p.m.

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

2023-06-0919:31:54
CWE-502
GitHub Advisory Database
github.com
11
data.init base32encoded
server exposure
denial of service
vapor
patched issue
workaround
application security

CVSS2

6.4

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:N/A:P

CVSS3

9.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

EPSS

0.002

Percentile

55.1%

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:

Affected configurations

Vulners
Node
vaporgithub.com\/vapor\/vaporRange<4.47.2
VendorProductVersionCPE
vaporgithub.com\/vapor\/vapor*cpe:2.3:a:vapor:github.com\/vapor\/vapor:*:*:*:*:*:*:*:*

CVSS2

6.4

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:N/A:P

CVSS3

9.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

EPSS

0.002

Percentile

55.1%

Related for GHSA-PQWH-C2F3-VXMQ