CVE-2023-44386
JSON

5.3medium

Incorrect request error handling triggers server crash in Vapor

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.74% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3mwq-h3g6-ffhm

Description

Vapor is an HTTP web framework for Swift. There is a denial of service vulnerability impacting all users of affected versions of Vapor. The HTTP1 error handler closed connections when HTTP parse errors occur instead of passing them on. The issue is fixed as of Vapor release 4.84.2.

Affected

Product or packageVersionsReported by
vapor vapor>= 4.83.2, < 4.84.2, from 4.83.2 before 4.84.2CVE List, NVD
github.com/vapor/vapor (SwiftURL)from 4.83.2 before 4.84.2GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-231CWE-617CWE-696

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Vapor is an HTTP web framework for Swift. There is a denial of service vulnerability impacting all users of affected versions of Vapor. The HTTP1 error handler closed connections when HTTP parse errors occur instead of passing them on. The issue is fixed as of Vapor release 4.84.2.

GitHub Advisory Database

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.

NVD (es)

Vapor es un framework web HTTP para Swift. Existe una vulnerabilidad de denegación de servicio que afecta a todos los usuarios de las versiones afectadas de Vapor. El controlador de errores HTTP1 cerraba las conexiones cuando se producían errores de análisis HTTP en lugar de transmitirlos. El problema se solucionó a partir de la versión 4.84.2 de Vapor.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-44386 changed 2024-09-19CVE Terms of Use
GitHub Advisory DatabaseGHSA-3mwq-h3g6-ffhm changed 2026-09-10CC-BY-4.0
NVDCVE-2023-44386 changed 2026-06-17Public domain