Lucene search

K
githubGitHub Advisory DatabaseGHSA-3MWQ-H3G6-FFHM
HistoryOct 05, 2023 - 8:55 p.m.

Vapor's incorrect request error handling triggers server crash

2023-10-0520:55:58
CWE-231
GitHub Advisory Database
github.com
15
vapor
denial of service
swift-nio
api misuse
service interruption
vulnerability
recovery

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

LOW

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

EPSS

0.001

Percentile

27.3%

Vapor incorrectly handles errors encountered during parsing of HTTP 1.x requests, triggering a precondition failure in swift-nio due to API misuse and causing immediate termination of the server process.

Impact

This is a denial of service vulnerability, impacting all users of affected versions of Vapor. Because the crash is an explicit assertion failure, there is no corruption of process state and no risk of data leakage or unauthorized code execution. Total impact is limited to an immediately recoverable service interruption.

Patches

The issue is fixed as of Vapor release 4.84.2.

Workarounds

None known at this time.

For more information

If you have any questions or comments about this advisory:

Acknowledgements

Full credit for reporting this issue goes to @t0rchwo0d, with additional thanks for responsibly disclosing.

Affected configurations

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

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

LOW

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

EPSS

0.001

Percentile

27.3%

Related for GHSA-3MWQ-H3G6-FFHM