PHP 8.5.13: what I would change after CVE-2026-115560

PHP 8.5.13: what I would change after CVE-2026-115560

PHP 8.5.13 shipped 19 Nov 2026 for CVE-2026-115560 and CVE-2026-129289. php -v on Ubuntu 24.04 still prints 8.3.6 after package .14. session.upload_progress.enabled is Off on this CLI. I would read the package revision, then the FPM binary Nginx uses. This is a PHP-core dump, not a Laravel Composer bump.

· Updated · 11 min read #php #security #php-8-5 #cve #php-fpm

 CVE-2026-115560 is a PHP binary, not Laravel core

Caption: php -v first. Then dpkg-query. Then the FPM binary Nginx actually uses. Illuminate does not ship this CVE. composer update laravel/framework does not patch it.

I did not paste a multipart upload or a FastCGI smuggle at anything tonight. I opened Ubuntu 24.04.5 and installed archive php8.3-cli. php -v printed PHP 8.3.6, built 18 Nov 2026 23:42:07. PHP_VERSION_ID is 80306. dpkg-query -W php8.3-cli printed 8.3.6-0ubuntu0.24.04.14. Last month I treated .13 as the floor after USN-8948-1. This dump is .14. A naive PHP_VERSION_ID >= 80337 check on this box is false. I will not invent that Ubuntu shipped 8.3.37.

php -i printed session.upload_progress.enabled => Off. ini_get() returned '0'. /etc/php/8.3/cli/php.ini still comments Default Value: On and leaves ;session.upload_progress.enabled = On commented. No uncommented On in that file. command -v php-fpm8.3 is empty. This is a lab note. I did not write a remote exploit. I did not paste a gadget chain.

The 30 Oct post left CVE-2026-115560 as rumor. php.net’s 23 Oct informational promised a full advisory with the next regular bugfix. That tag is 8.5.13.

What changed

php.announce #515 tagged PHP 8.5.13 at 19 Nov 2026 14:08:52 UTC. php.watch dates the tag 2026 Nov 19 and still lists it as latest 8.5 on 25 Nov 2026. The release page calls it a security release. Same-day security tags:

Branch Tag php.announce Note I would not skip
8.5 8.5.13 #515, 14:08 UTC Latest 8.5 I can cite on 25 Nov.
8.2 8.2.36 #516, 14:09 UTC Security window closes 31 Dec 2026.
8.4 8.4.28 #517, 14:31 UTC Latest 8.4. Active support until 31 Dec 2026.
8.6 8.6.0 #518, 14:45 UTC GA. Same session/FPM fixes. Not a production Laravel jump.
8.3 8.3.37 #519, 16:19 UTC Ubuntu 24.04 archive is not this number.

Advance notice was php.net’s 18 Nov 2026 archive post: Thursday 19 Nov between 14:00 and 14:30 UTC, highest severity CRITICAL, non-default or uncommon setups.

What I will treat as locked:

  • CVE-2026-115560 / GHSA-658j-r8rw-q6mx. Published 19 Nov 2026. php-src, not Laravel. Upload progress can write with php_binary / php_serialize and a later php reader treats key bytes as objects. RCE needs a gadget chain. Separate from CVE-2026-109619. CVSS 9.2 (AC:H). New default is Off. Explicit On overrides it. ini_set() is too late.
  • CVE-2026-129289 / GHSA-qc49-hpvq-g2w6. Published 19 Nov 2026. FPM can parse leftover body bytes as a new FastCGI request when the front end reuses the backend (fastcgi_keep_conn on / Apache enablereuse=on) and the app opens php://input without finishing it. Stock close-after-request nginx/Apache are not that path. CVSS 9.2 (AC:L).
  • Affected php.net tags: 8.2.* < 8.2.36, 8.3.* < 8.3.37, 8.4.* < 8.4.28, 8.5.* < 8.5.13. PHP 8.1 and older have no php.net tag.
  • Ubuntu 24.04 floor is .14, not 8.3.37. Launchpad php8.3 8.3.6-0ubuntu0.24.04.14 changelog 19 Nov 2026 10:42 +1100, noble-security 20 Nov. Ubuntu CVE-2026-115560 last updated 23 Nov 2026 lists that revision. Same floor on CVE-2026-129289. ubuntu.com/security/notices/USN-9185-1 404’d on 25 Nov. I will not treat that HTML as retrieved.
  • ondrej Noble already has 8.5.13 — 8.5.13-2+ubuntu24.04.1+deb.sury.org+1, 19 Nov 2026. The PPA is now deprecated / frozen. Next dump is packages.sury.org.

What I will treat as rumor: a Laravel-core CVE; composer audit as the check; 8.5.14 (php.watch still has 8.5.13 as latest 8.5 on 25 Nov); production Laravel FPM on 8.6.0 this week; Ubuntu printing 8.3.37.

8.5-only siblings: GHSA-8mjj-2r7p-4hg2 / CVE-2026-129474 and GHSA-2fjv-p558-g82m / CVE-2026-129182. Same-day notes only: CVE-2026-126714, CVE-2026-129481, CVE-2026-129496.

What I would change in a real Laravel/PHP app this week

Three edits. None of them is “rewrite the app.” None of them is a Composer lock bump.

1. Prove the binary Nginx uses. Then prove the package revision. Then prove upload progress.

php -v
php -r 'echo PHP_VERSION_ID, PHP_EOL;'
php -i | grep session.upload_progress.enabled
# the pool in the vhost, not the one I wish I had
php-fpm8.3 -v   # or php-fpm8.5 / php-fpm8.4
dpkg-query -W -f='${Package} ${Version}\n' php8.3-cli php8.3-fpm
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' php8.3-fpm)" ge '8.3.6-0ubuntu0.24.04.14' && echo distro-fpm-patched
grep -R fastcgi_keep_conn /etc/nginx || true

This lab has no FPM. The error I actually expect on a box that “already upgraded” is the CLI/FPM split, or the version-id lie, or an old php.ini that still sets On:

PHP 8.3.6 (cli) (built: Nov 18 2026 23:42:07)
PHP_VERSION_ID=80306
php8.3-cli 8.3.6-0ubuntu0.24.04.14
session.upload_progress.enabled => Off => Off
# php.ini still comments Default Value: On

2. Stop trusting PHP_VERSION_ID alone on Ubuntu archive PHP.

function phpNov19SecurityFloorMetNaive(): bool
{
    $id = PHP_VERSION_ID;

    return match (true) {
        $id >= 80600 => true, // 8.6.0 includes the fixes. Not the production jump.
        $id >= 80500 => $id >= 80513,
        $id >= 80400 => $id >= 80428,
        $id >= 80300 => $id >= 80337,
        $id >= 80200 => $id >= 80236,
        default => false,
    };
}

// Before — this is false on Ubuntu 24.04 even after package .14.
// phpNov19SecurityFloorMetNaive(); // false; PHP_VERSION is still 8.3.6
function ubuntuPhpPackageVersion(string $sapi = 'fpm'): string
{
    $pkg = 'php' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '-' . $sapi;
    $out = [];
    // Single-quote ${Version} for bash. Unquoted, the shell eats it.
    exec('dpkg-query -W -f=\'${Version}\' ' . escapeshellarg($pkg) . ' 2>/dev/null', $out);

    return $out[0] ?? '';
}

function phpNov19SecurityFloorMet(): bool
{
    if (phpNov19SecurityFloorMetNaive()) {
        return true;
    }

    foreach ([ubuntuPhpPackageVersion('fpm'), ubuntuPhpPackageVersion('cli')] as $ver) {
        if ($ver !== '' && version_compare($ver, '8.3.6-0ubuntu0.24.04.14', '>=')) {
            return true;
        }
    }

    return false;
}

// After — brake until the SAPI that serves requests is on the floor.
if (PHP_SAPI !== 'cli' && ! phpNov19SecurityFloorMet()) {
    abort(503, 'HTTP SAPI is below the 19 Nov 2026 PHP session/FPM floor.');
}

That 503 is a brake, not the patch. The patch is the PHP package plus a worker restart. I ran the naive function on this CLI. It returned false. ini_get('session.upload_progress.enabled') returned '0'.

3. Install the floor I can cite. Reload the pool Nginx uses. Keep upload progress off in the pool, not in app/.

On Ubuntu 24.04 without a PPA:

apt-cache policy php8.3-fpm
sudo apt update
sudo apt install --only-upgrade php8.3-cli php8.3-fpm
sudo systemctl reload php8.3-fpm
php-fpm8.3 -v
dpkg-query -W php8.3-fpm
php-fpm8.3 -i | grep session.upload_progress.enabled

On Ubuntu 24.04 with the old ppa:ondrej/php (8.5.13 is already there dated 19 Nov):

sudo apt update
sudo apt install --only-upgrade php8.5-cli php8.5-fpm
sudo systemctl reload php8.5-fpm
php-fpm8.5 -v

Then migrate off the frozen PPA before the next dump, in this order from the Launchpad page:

sudo apt update
sudo apt install debsuryorg-repository-php
sudo add-apt-repository --remove ppa:ondrej/php
sudo apt update

Then in the FPM pool, not in Laravel:

; /etc/php/8.3/fpm/pool.d/www.conf  (or the 8.5 pool Nginx points at)
php_admin_value[session.upload_progress.enabled] = 0

reload is the step I skip when I am tired. OPcache keeps the old worker until that happens. ini_set() in AppServiceProvider is too late. An explicit On in php.ini overrides the new compiled default.

What would bite on a self-hosted VPS

 Version check, package revision, then PPA vs distro PHP

Caption: php -v lies on Ubuntu archive PHP. dpkg-query is the distro check. ondrej Noble already has 8.5.13. Reload the pool Nginx uses. I did not paste a FastCGI payload.

First bite: the socket, not php -v. I bump php8.5-cli and leave Nginx on unix:/run/php/php8.3-fpm.sock. These CVEs die in the worker that parsed the request. This lab has no FPM. CLI-only is not a web fix.

Second bite: the php.ini comment. Distro php -v stays 8.3.6. The patched package is .14. ini_get is '0' here because nothing uncommented On. The file still documents Default Value: On. An old php.ini with session.upload_progress.enabled=On keeps the 115560 path. Ubuntu 22.04 php8.1 is Not affected for 115560 and 8.1.2-1ubuntu2.29 for 129289. Ubuntu 26.04 is php8.5 8.5.4-0ubuntu1.6. Ubuntu 26.10 is 8.5.9-0ubuntu2.2. Those are not 8.5.13.

Third bite: reuse and the frozen PPA. GHSA-qc49 needs fastcgi_keep_conn (stock nginx leaves it off). 8.5.13 landed on ondrej 19 Nov; Launchpad now says that PPA is frozen, so the next tag never arrives if I stay pointed at it. Shared hosting that will not reload the pool has no polyfill in app/. config.platform.php stays on the FPM I serve.

Six days after the tag

 Advisory timeline from 23 Oct informational to this 25 Nov lab note

Caption: Informational CVE-2026-115560 on 23 Oct, not shipped. Advance notice 18 Nov. Four security tags, 8.6.0 GA, and both GHSAs on 19 Nov. Ubuntu noble .14 published 20 Nov. I am writing 25 Nov. php.watch still has 8.5.13 as latest 8.5.

php.net supported versions (retrieved 25 Nov 2026): 8.5 active until 31 Dec 2027, 8.4 until 31 Dec 2026, 8.2 security until 31 Dec 2026. Honest target: FPM on 8.5.13 via ondrej/sury, or noble php8.3-fpm 8.3.6-0ubuntu0.24.04.14, CLI and socket the same floor, upload progress Off in the pool. I would not invent 8.5.14. I would not move production FPM to 8.6.0 this week.

Are you on this in production?

If FPM already prints 8.5.13 (or 8.4.28 / 8.3.37 / 8.2.36) you are on the php.net floor. If Ubuntu 24.04 archive FPM is 8.3.6-0ubuntu0.24.04.14, you are on the distro floor even though php -v still says 8.3.6. If CLI is patched and phpinfo() is still 8.5.12 or .13, or the pool still has session.upload_progress.enabled=On, you are not. Shared hosting with no PPA and no .14 is the last camp. I did not flip a client cluster tonight. I want to know which of those you are in.

Did you hit the same wall?

I would get stuck on php -v still showing 8.3.6 after package .14, or on session.upload_progress.enabled still On because an old php.ini uncommented the documented default. Did you hit the same thing, or a different one — CLI 8.5.13 / FPM 8.5.12 after apt install, a frozen ondrej PPA, a panel that will not reload the pool, ini_set for upload progress that never applied? Tell me in the comments. I read them.

If the blocker is the VPS itself (PPA vs distro PHP, the wrong socket, a host that will not give you 8.5.13), I do this class of bump for a living: Hire for deploy.

References

Share:

Get new posts in your inbox

No spam. One short email per new article — practical PHP, Laravel, devops, and AI-assisted workflows.

Comments

Powered by GitHub Discussions via Giscus. A free GitHub account is required.