GitHub Advisoryadvisory · SwiftURL
GHSA-3mwq-h3g6-ffhm Vapor's incorrect request error handling triggers server crash
MEDIUM
Official page ↗
- Aliases
- CVE-2023-44386
- Ecosystem
- SwiftURL
- Packages
- github.com/vapor/vapor
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-231
- Reviewed
- 2023-10-05
Affected packages
• SwiftURL github.com/vapor/vapor: >= 4.83.2, < 4.84.2 → fixed in 4.84.2
Description
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:
• Open an issue in the Vapor repo
• Ask in Vapor Discord
Acknowledgements
Full credit for reporting this issue goes to @t0rchwo0d, with additional thanks for responsibly disclosing.
Related
Alias · CVE (1)
- CVE-2023-44386 Vapor is an HTTP web framework for Swift. vulnerability
Weakness · CWE (1)
- CWE-231 Improper Handling of Extra Values weakness
References
- https://github.com/vapor/vapor/security/advisories/GHSA-3mwq-h3g6-ffhm web
- https://nvd.nist.gov/vuln/detail/CVE-2023-44386 advisory
- https://github.com/vapor/vapor/commit/090464a654b03148b139a81f8f5ac63b0856f6f3 web
- https://github.com/vapor/vapor package
- https://github.com/vapor/vapor/releases/tag/4.84.2 web