GHSA-95x4-j7vc-h8mf

Suggest an improvement
Source
https://github.com/advisories/GHSA-95x4-j7vc-h8mf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/05/GHSA-95x4-j7vc-h8mf/GHSA-95x4-j7vc-h8mf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-95x4-j7vc-h8mf
Aliases
Published
2023-05-17T17:07:57Z
Modified
2024-02-16T08:21:37.735453Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2023-05-17T18:15:09Z",
    "cwe_ids": [
        "CWE-400"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-05-17T17:07:57Z"
}
References

Affected packages

Packagist / react/http

Package

Name
react/http
Purl
pkg:composer/react/http

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.8.0
Fixed
1.9.0

Affected versions

v0.*

v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.8.4
v0.8.5
v0.8.6
v0.8.7

v1.*

v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.4.0
v1.5.0
v1.6.0
v1.7.0
v1.8.0