A remote response can occupy the PHP worker

CVE-2026-127960 affects PHP’s built-in HTTP stream wrapper. A malicious server can return a header split across many continuation lines and cause the wrapper to use excessive CPU. Applications that fetch a URL with file_get_contents(), fopen() or another stream function may become slow or unavailable.

The PHP advisory lists versions 8.1.32 through 8.1.34, 8.2.28 to before 8.2.36, 8.3.18 to before 8.3.37, 8.4.5 to before 8.4.28, and 8.5.0 to before 8.5.13 as affected. The issue is relevant to applications that retrieve HTTP or HTTPS responses.

Map PHP services that fetch remote content

Find application code that reads URLs from partner systems, user submissions, webhooks, feeds or internal APIs. Check which requests run inside web workers and which use a queue. A slow remote response can tie up a PHP worker even when the local server is healthy.

Set reasonable connection and response time limits in the application. Use an allowlist for destinations when a user can influence the URL. These controls help limit exposure but do not correct the vulnerable parser.

Patch supported PHP branches

Install 8.2.36, 8.3.37, 8.4.28 or 8.5.13 for the relevant branch, or use a vendor package with the fix. PHP does not list a patched version for the 8.1 branch in this advisory, so confirm support and upgrade options with the supplier.

After the change, validate remote fetch workflows, response timeouts and error handling. Monitor worker saturation and queues when integrating with external services.