Security
Headlines
HeadlinesLatestCVEs

Headline

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

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.

ghsa
#vulnerability#git#php
  1. GitHub Advisory Database
  2. GitHub Reviewed
  3. CVE-2023-26044

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

Moderate severity GitHub Reviewed Published May 17, 2023 in reactphp/http

Package

Affected versions

>= 0.8.0, < 1.9.0

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.

References

  • GHSA-54hq-v5wp-fqgv
  • GHSA-95x4-j7vc-h8mf
  • php/php-src@716de0c#diff-81d659aa9e83177ac08151f99cebf21ab331d22462c72a1039f59947e66f5a35
  • reactphp/http@9681f76
  • https://github.com/reactphp/http/releases/tag/v1.9.0

Published to the GitHub Advisory Database

May 17, 2023

Related news

CVE-2023-26044: Merge pull request from GHSA-95x4-j7vc-h8mf · reactphp/http@9681f76

react/http is an event-driven, streaming HTTP client and server implementation for ReactPHP. 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. This issue has been addressed in release 1.9.0. Users are advised to upgrade. Users unable to upgrade may keep the request body limited using RequestBodyBufferMiddleware with a sensible value which should mitigate the issue. An infrastructure or DevOps workaround could be to place a reverse proxy in front of the ReactPHP HTTP server to filter out any excessive HTTP request bodies.