CVE-2026-127960: PHP denial of service through folded HTTP response headers

Data Security

CVE-2026-127960 is a denial of service flaw in the way PHP reads HTTP responses with its own stream functions. A server that answers with specially shaped headers can keep the PHP worker that called it busy. It was published on November 19, 2026, and Opensolr has been protected against it since that same day.

01 · At a glance

Identifier
CVE-2026-127960
Severity
8.7 High (CVSS v4.0)
Published
November 19, 2026
Affected
PHP 8.2.28 to 8.2.35, 8.3.18 to 8.3.36, 8.4.5 to 8.4.27, 8.5.0 to 8.5.12
Fixed in
PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13
Opensolr
Protected since November 19, 2026
Last reviewed
November 20, 2026

02 · What it is

An HTTP header can be folded across several lines. The PHP HTTP stream wrapper joins each continuation line to the value read so far by allocating a new string and copying the whole value again. A response made of many short continuation lines therefore costs far more CPU than its size suggests.

An attacker who controls an HTTP or HTTPS response that PHP fetches can keep that worker busy. Repeated or parallel requests exhaust the worker pool and the site stops answering.

03 · Who is affected

Applications that fetch a URL with the PHP stream functions when the attacker can choose the URL or influence the server behind it:

  • file_get_contents(), fopen(), copy(), getimagesize() and similar functions called with an http:// or https:// address.
  • Typical cases: link previews, webhooks, feed readers, image imports, site verification checks.

Requests made with the cURL extension do not go through the vulnerable code.

04 · How to fix it

Upgrade to PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13, depending on your branch, and restart PHP-FPM or the web server.

php -v
sudo apt update && sudo apt install --only-upgrade 'php8.*'

05 · How to mitigate until you can upgrade

  • Fetch remote addresses with cURL, with a connect timeout, a total timeout and a response size limit.
  • Where the application never needs URL fetching through stream functions, switch it off for that site or pool.
  • Only fetch addresses that resolve to public hosts you expect, and check every redirect the same way.
; php.ini, or php_admin_flag[allow_url_fopen] = off in one PHP-FPM pool
allow_url_fopen = Off
$ch = curl_init($url);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => false,
    CURLOPT_PROTOCOLS      => CURLPROTO_HTTP | CURLPROTO_HTTPS,
    CURLOPT_CONNECTTIMEOUT => 5,
    CURLOPT_TIMEOUT        => 15,
]);
$body = curl_exec($ch);

06 · How to check a server

php -v | head -1
php-fpm8.4 -i | grep '^allow_url_fopen'
grep -rnE "(file_get_contents|fopen|copy|getimagesize)\s*\(\s*\$" --include='*.php' /path/to/your/app | head -50

The last command lists the calls worth reviewing: those whose argument is a variable that may hold a remote address.

07 · Opensolr and this vulnerability

Status on November 20, 2026. Opensolr is protected against CVE-2026-127960. The condition it needs was closed on the platform on November 19, 2026, the day the advisory was published. Nothing is required from you: your Opensolr Index, your account and your data are not exposed to it.

  • Opensolr watches newly published vulnerabilities for every component of the platform, around the clock.
  • Each advisory is assessed against the platform as soon as it is published.
  • The fix is applied, or the vulnerable condition is closed, and the result is verified before the case is closed.

More on how Opensolr protects your data: Opensolr Trust Center and all security pages. Questions about a vulnerability that is not listed: contact Opensolr.

Official advisory: PHP security advisory GHSA-mmf9-xm3v-hg2x · NVD entry.