Skip to main content

Excessive CPU usage from HTTP response when using stream wrapper

Publication Date 2026-11-19
Severity High
Type Denial of Service
Affected PHP Versions
  • 7.2.0-7.2.34
  • 7.3.0-7.3.33
  • 7.4.0-7.4.33
  • 8.1.0-8.1.34
  • 8.2.0-8.2.35
  • 8.3.0-8.3.36
  • 8.4.0-8.4.27
  • 8.5.0-8.5.12
Fixed Product Versions
  • ZendPHP 7.2
  • ZendPHP 7.3
  • ZendPHP 7.4
  • ZendPHP 8.1
  • ZendPHP 8.2
  • ZendPHP 8.3
  • ZendPHP 8.4
  • ZendPHP 8.5
  • ZendServer 2021.4.10

CVE Details

A malicious HTTP server can cause PHP's built-in HTTP stream wrapper to consume excessive CPU while reading a response. Applications using file_get_contents(), fopen() or other stream functions to fetch an HTTP or HTTPS URL may become slow or unavailable if the response contains a header split across a large number of continuation lines.

Recommendations

Consider using a non-stream-wrapper HTTP client, such as cURL, for your HTTP requests. If this is not possible, update to a known patched version of PHP.