GitHub Advisoryadvisory · Packagist

GHSA-95x4-j7vc-h8mf ReactPHP's HTTP server continues parsing unused multipart parts after reaching input field and file upload limits

MEDIUM Published 2023-05-17 Modified 2023-05-17 Official page ↗
Aliases
CVE-2023-26044
Ecosystem
Packagist
Packages
react/http
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-400
Reviewed
2023-05-17

Affected packages

• Packagist react/http: >= 0.8.0, < 1.9.0 → fixed in 1.9.0

Description

Summary Previous versions of ReactPHP's HTTP server component contain a potential DoS vulnerability that can cause high CPU load when processing large HTTP request bodies. This vulnerability has little to no impact on the default configuration, but can be exploited when explicitly using the `RequestBodyBufferMiddleware` with very large settings. This might lead to consuming large amounts of CPU time for processing requests and significantly delay or slow down the processing of legitimate user requests. Patches The supplied patch resolves this vulnerability for ReactPHP. Workarounds • Keeping the request body limit using `RequestBodyBufferMiddleware` sensible will mitigate it. • Infrastructure or DevOps can place a reverse proxy in front of the ReactPHP HTTP server to filter out any excessive HTTP request bodies. References A similar vulnerability was discovered in PHP recently, see also PHP's security advisory (CVE-2023-0662). The fix is based on the PHP-FPM fix.

Related

Alias · CVE (1)

  • CVE-2023-26044 react/http is an event-driven, streaming HTTP client and server implementation for ReactPHP. vulnerability

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References