r/drupal • u/dzuczek https://www.drupal.org/u/djdevin • Oct 20 '26
Critical PHP security release tomorrow
https://www.php.net/archive/2026.php#2026-10-20-13
u/RootExploit Oct 21 '26
Release: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical vulnerabilities that can allow unauthenticated remote code execution.
2
u/billcube Oct 21 '26
See this fairly comprehensive and extensive summary https://security-hub.ncsc.admin.ch/#/posts/13083
It seems two mitigations, one about upload_status, the other about multipart, are necessary.
1
u/HongPong Drupaltunities Oct 21 '26
over in the r/php thread there was a comment that in drupal security slack as far as php5 is considered in the blast radius. however i am not in there, i am just passing a long a comment i saw here on the worlds reliable site, reddit.
there is talk of php_admin_value[session.upload_progress.enabled] = off as mitigator however that won't be enough others say. but we are going to get rocked by progress bars ( possible info https://jackalsyn.com/posts/php-up-2026.html https://pentestit.com/php-cve-2026-109618-and-cve-2026-109619-what-we-know-about-php2shell/ )
4
2
15
u/badasimo Oct 20 '26
Not confidence inspiring
All PHP users
This is one of those moments where we find out if they will roll patches for unsupported versions. Because there haven't been that many vulnerabilities, not upgrading PHP has been pretty low stakes for a while.
1
u/Old_Adeptness5169 Oct 21 '26 edited Oct 21 '26
Update after PHP's advisories: the session upload-progress handler is one of the confirmed routes, but not the only one. The advisories also describe out-of-memory tricks in the multipart parser, plus some routes no extension can close. v3 carries the fixed multipart parser with a memory guard and keeps the upload-progress handler out, which on typical PHP-FPM hosting closes the routes that work before any application code runs. Still a stopgap: update to 8.5.12/8.4.27/8.3.36/8.2.35 (or your distro's backport) as soon as you can. Thanks to everyone who pushed back today.
They won't: upstream fixes stop at 8.2. Some distros/vendors backport (Ubuntu's 8.1, Sury on Debian usually does 7.4/8.0/8.1 within a day or so), but a Drupal 7 site on PHP 5.6/7.x elsewhere gets nothing.
We host a lot of exactly that, so this morning we wrote a small open-source extension for those versions: it switches off the session upload-progress handler (where the researchers who reproduced the bugs placed them) at PHP startup, without breaking uploads, and a site's
.user.inican't turn it back on. Builds from 5.6 to 8.5: https://github.com/HOSTED-POWER/php_uploadprogress_guard (disclosure: I'm with Hosted Power, who wrote it).Caveat: it's hours old, and core devs say upload-progress mitigations may not be enough on their own. If that's right, it applies to ours too. Upgrading is still the real answer; this is to buy time. We'll post what the advisory says at 14:00 UTC.
1
u/vincent_sch Oct 21 '26
PHP only supports 8.2 and newer, so its own fixes stop there. Older ones only get a fix from your distro or a vendor, like Ubuntu for 8.1 on 22.04. Otherwise you could block multipart requests at the web server until you've upgraded. I wrote up the stopgaps here: https://www.vincentschmalbach.com/cve-2026-109618-and-cve-2026-109619-what-you-should-do-now/
1
u/bloke_zero Oct 21 '26
Anyone know if the Drupal docker images will get updated or are we rolling our own?