Vulnerability GHSA-95x4-j7vc-h8mf

Medium Risk
MEDIUM RISK
CVSS Score: 5.3
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
3 years ago
May 17, 2023 at 05:07 PM UTC
ReactPHP's HTTP server continues parsing unused multipart parts after reaching input field and file upload limits
0.8.0 - 1.8.0
0.8.0 - 1.8.0

Summary

ReactPHP's HTTP server continues parsing unused multipart parts after reaching input field and file upload limits

Details

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.

Impacted packages

Timeline

Published
3 years ago
May 17, 2023 at 05:07 PM UTC
Fixed (1.9.0)
3 years ago
April 26, 2023 at 10:29 AM UTC
Last Modified
2 years ago
February 16, 2024 at 08:21 AM UTC