r/PHP
•
u/Svpernova09
•
Oct 20 '26
•
1
News Upcoming Critical PHP Security Release
https://www.php.net/archive/2026.php#2026-10-20-1
731
Upvotes
90
u/SaltineAmerican_1970 Oct 20 '26
If Ondřej Surý is on vacation, nothing will get updated.
28
u/Civil_Macaroon2143 Oct 20 '26
Please let it be just something like bad request filtering that can be blocked on the webserver
12
u/sleemanj Oct 21 '26 edited Oct 21 '26 •
According to unverified post on Twitter, this appears to be related to the (kinda weird) upload_progress feature of session.
While I can't say for sure if this will be effective, it's probably wise to set
of course this might break things if you use upload progress, but a small price to pay for possible interim protection.
I changed the name as well as disabling because the PHP docs indicate that a POST variable submission with that name is detected and used to populate session data, so seems sensible to have that not be the default in case the POST variable detection is integral to the attack.
Edit: Probably also wise to add a rule for mod security to deny, below works taken from link below but severity added...
If you use fail2ban, you can trigger off the critical severity failure as well, in case the bot attacks try different known variable names at least you'll catch then when they do the default. Of course take care that you don't actually use that feature in your code normally.
Edit 2: It may be desirable for people to block file uploads using mod security as well until the actual details are fully known, obviously this is a very very blunt instrument.
15
u/jimdoescode Oct 20 '26
Why not publish the affected versions now so folks can determine if they are impacted before the update drops?
5
u/GreenWoodDragon Oct 20 '26
Great. My org is running PHP on Windows 🤦
92
u/300ConfirmedGorillas Oct 21 '26 edited Oct 22 '26
Just passed along some of this info to my boss. We've been on PHP 7.2 since 2021 and I've been told every year "by end of this summer" we'll upgrade.
But the business doesn't care about upgrading PHP versions. To them there's no profit proposition so they don't care. When we first started looking into it, we were targeting PHP 8.1, but it's been pushed back so much we're now looking at PHP 8.4.
Maybe this will motivate their asses.
EDIT (morning of Oct 21): Apparently the security team at my company knows (as they should), and everyone is in panic mode LMAO. We're scraping together a plan to update everything to 8.2.35 ASAP. Fun times.
EDIT 2 (evening of Oct 21): WE DID IT REDDIT! Production has been updated to 8.2.35. Took the entire day because the Linux distros themselves were so fucking old we had to update those as well. But it's done. We discussed moving to 8.4 in the new year. We'll see if it happens. Honestly I'm just glad I get to write code in the 8.x branch lmao. Been on 7.2 since I started at this company, so this is a nice change, even if it is 8.2.
76
u/OpeningCredit Oct 20 '26
Friday at 5PM would have been more fun, but okay.
88
u/danabrey Oct 20 '26
When was the last time a pre warning like this made? I don't usually see this.
38
u/GoudenEeuw Oct 21 '26
Great way to force everyone to upgrade ancient PHP. Also a great way to increase energydrink and coffee sales for all the poor devs having to deal with this for the coming hours,days, potentially weeks.
29
u/Morlaix Oct 21 '26
I am wondering why this is not bigger news on international news sites. Here in the Netherlands this is frontpage news with live blogs showing which sites are being pulled offline as precautions. This includes government sites, and news sites.
26
u/spec-tacul-ar Oct 20 '26
😬 This could be carnage.
21
u/Morlaix Oct 21 '26
We just took all our sites offline already. Can't risk it
60
u/Gipetto Oct 21 '26
This is my fault. I stood up in front of a gaggle of Typescript developers and proclaimed that there was (mostly) nothing wrong with PHP.
41
u/feldoneq2wire Oct 20 '26
Probably a cornucopia of AI-discovered exploits.
48
u/thejoyofbeing1 Oct 20 '26
Holy fuck: https://x.com/k_firsov/status/2112641845926989944
If this is true then tomorrow will be pure and raw chaos.
16
u/WoahGoHandy Oct 20 '26
Welp suppose it's time to update my PHP from 5.7.
I'm just thinking of all the random local WordPress sites that will never be updated. What's going to happen to them? You'll just have to assume they're popped
15
u/Shinhan Oct 21 '26
Cloudflare pushed some new WAF rules: https://developers.cloudflare.com/changelog/post/2026-10-21-emergency-waf-release-cfmr/
14
u/GeneralSEOD Oct 20 '26
Well shit.
12
u/brendt_gd Oct 21 '26
Pinning this post for now, we'll pin another one once the patches are here
18
u/mehflick Oct 20 '26
I'm just going to turn it off and on again. It'll be fine
7
u/luluvatar Oct 21 '26
The patch is OUT : https://www.php.net/archive/2026.php#2026-10-21-5
Go update!!!
6
u/anxious0 Oct 21 '26
any word on the remi php packages? I saw on bluesky he was going to be unavailable for a few days, is there any good alternative for EL8 ?
15
u/Csysadmin Oct 21 '26
I run a VPS with some personal projects for funsies.
I just pointed all my sites-enabled to a sloppy maintenance html page, then hit the old:
And just to be sure...
Then I can just chill out til the weekend and sort it then. Apologies to the three people that might've visited during those few days. I'm enjoying the perks of being insignificant!
10
u/songya Oct 21 '26 edited Oct 21 '26
Found some new information here - https://pentestit.com/php-cve-2026-109618-and-cve-2026-109619-what-we-know-about-php2shell/
5
u/dutchman76 Oct 21 '26
Thank god I run the latest version of everything
5
u/competitive_brick1 Oct 21 '26
Urrghhh Im going to take my site down until tomorrow and I know what I need to do. I cant stay up until 1am to get it sorted. Safest route for me I think is to go dark on my site until the morning
5
u/tei187 Oct 21 '26
For a language that is said to be not used by anyone, I receive an awful lot of memos about services being temporarily shut down until the patch shows up, many of which I wasn't aware they ran on PHP.
9
u/prostackhost Oct 20 '26
We wrote a quick summary of this for our customers, but it might also be useful here: https://prostack.uk/blog/critical-php-security-update-october-2026/
From what we've read online, the embargo was meant to lift on Thursday, but even if that's correct, I would imagine that an exploit will be available very soon after the patches release.
4
u/McDeathUK Oct 21 '26
Hats off to Sury who patched all the way back to 5.x in the repo
4
u/Alias14 Oct 20 '26
Does anyone know if the new docker image version will get tagged soon after release?
4
u/Abject_Pen_8252 Oct 20 '26
Do we figure Amazon Linux 2023 will have a patch immediately ready for release?
4
u/carsonlives404 Oct 21 '26
I heard this one is going to be really bad.
4
u/kratkyzobak Oct 21 '26
So.... this is it?
https://hub.docker.com/layers/library/php/8.4.27RC1-trixie/images/sha256-cd13980d76ed67eee5127ac86b5adceaddbf1486e9e55250411fd4f6e013faf4
7
u/kratkyzobak Oct 20 '26
Too excited which unsupported versions will get patch!
6
u/pekz0r Oct 20 '26
Does anyone know if EOL versions will get patches as well?
3
u/Some0ing Oct 21 '26
Successfully php have forced my company update old legacy 7.3 to 8.5.32. It was difficult like hell! Huh…
3
u/SomniaStellae Oct 21 '26
Well this is going to be fun.
3
u/HongPong Oct 21 '26
i suspect this could lead to pivot attacks even into sites that are patched because external management sites could get hit. something like the recent updraft central hack planting malware.
3
u/AegirLeet Oct 21 '26
My understanding right now is this:
Setting
session.upload_progress.enabled = Offis a partial mitigation at best and only stops some of the potential attacks.However, rejecting all
multipart/form-datarequests before they hit PHP (in nginx, for example) should help.Can anyone confirm that? Is blocking
multipart/form-dataa viable mitigation strategy? Any other mitigations we should be considering?3
u/zucchini_up_ur_ass Oct 21 '26
Glad I didn't see this before falling asleep but goddamn what a way to wake up. What a shit show this disclosure is, no patch yet and it seems like just blocking multipart forms/uploads won't fix it completely either.
3
u/MattBD Oct 21 '26
Oh dear. At my last job there were two very legacy Zend 1 applications that couldn't be updated any further than PHP 7.1 due to changes that broke Zend 1 in 7.2 unless you migrated it to one of the maintained forks. One of them was slated for being replaced this year (part of why I was made redundant) but the other is likely still up and that one is going to be utterly fucked. The one saving grace is it was running in Docker so the runtime can be replaced without replacing the server as a whole.
Still, not my circus, not my monkeys now
3
u/Head-Job8397 Oct 21 '26
Since most of our company's web services are built on Laravel, We quickly took them all offline.I wonder if we'll be seeing more of this kind of thing from now on...
3
u/Zasoos Oct 21 '26
I was here when PHP pushed an update and several sites went down.
3
u/ThineMoistPantaloons Oct 21 '26
Still nothing on AlmaLinux.
3
u/Extreme-Anteater1632 Oct 21 '26
how long it usually takes for docker.io to have the new image in such scenarios?
5
u/jexmex Oct 21 '26
POC is already out maybe https://jackalsyn.com/posts/php-up-2026.html
5
u/PenguinsStoleMyCat Oct 20 '26
I wonder if Frankenphp has had a headstart and will be ready with a release.
2
u/juke12345 Oct 22 '26
my server was hit on the 19th 1 shell ran 41 commands and all failed bc im the goat ;) Patch took me 10 mins for all my site ;p
2
u/eudaytrader Oct 21 '26
As I am trying to get some sleep before dealing with all that mess tomorrow as it happens and with limited info available so far: Putting harder to fix stuff behind a .htaccess temporarily should help, right?
Wondering though what‘s gonna happen with all those admin tools like Plesk, any home appliances or routers with a PHP based control panel…
2
u/Next-Concentrate-277 Oct 21 '26 edited Oct 21 '26
Wait? With Ubuntu 22.04 on 8.1 and jammy with unattended updates I should be covered without any manual intervention yeah? It seems covered until 2027
Edit: shout out for the quick patch.
2
u/Lonely-Abalone-5104 Oct 21 '26
Come on Selinux fingers crossed
2
u/ordwk2b Oct 21 '26
Will Sury also get updated around the same time?
2
u/crackanape Oct 21 '26
I'm curious as to whether anyone's discovered artifacts of attempted exploits in their web server logs, and if so, what they looked like.
3
u/Simazine Oct 20 '26
Looking for to a pair of RCEs in the std lib
3
u/lucky-charm777 Oct 21 '26
Will you be releasing binary patches for PHP versions 5 through 8? Since this is a critical issue, we would appreciate an update on whether patches are planned and when they might be available.
3
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.
Disclosure: I'm with Hosted Power, a hosting company. Patch as soon as the release lands; this is for what you can't patch today. We have a stopgap and would love it reviewed.
The idea: ext/session installs
php_session_rfc1867_callbackinto the globalphp_rfc1867_callbackat MINIT, andmain/rfc1867.cchecks that pointer for NULL before every call. A tiny extension withZEND_MOD_OPTIONAL("session")that sets the pointer back to NULL in its own MINIT makes the upload-progress handler (where the researchers who reproduced the bugs placed them) unreachable for the life of the process.$_FILES,$_POSTand sessions behave as before; only the upload_progress entries in$_SESSIONdisappear.Why not just
session.upload_progress.enabled=Off? On a box you control, that's probably fine. On shared hosting it's a per-directory setting, so any site's.user.inican turn it back on.One C file, builds for 5.6 to 8.5 (so it also covers versions that won't get a fix), with prebuilt NTS binaries and Ansible for Debian/Sury, cPanel and DirectAdmin: https://github.com/HOSTED-POWER/php_uploadprogress_guard
It's a few hours old and only helps as far as the bugs live in that handler. We'll check it against the official advisory at 14:00 UTC and post the result. Corrections very welcome.
2
u/visual_overflow Oct 21 '26
Genuinely insane to see this happening in 2026. Wild, wild times.
1
u/phpstacks Oct 21 '26
Monitoring the situation
1
u/Round-Economist-5332 Oct 22 '26
We are using PHP 5.5
Is this issue critical?
No, it is not significant..
It is simply being added to the list of other critical issues
1
u/coyotegowda Oct 22 '26
Php-fpm is not as susceptible as mod_php. Can someone back me up on this!
1
u/Full_Tooth_a Oct 23 '26
I'd worry about treating "package updated" as proof that the runtime serving traffic is patched. Restart PHP-FPM or Apache to clear old workers and opcache, then check the version through the web SAPI. `php -v` only confirms the CLI version. For containers, rebuild and redeploy from a patched base image instead of updating the host. I'd also check access logs, process activity, and recently modified web files, since patching does not remove an existing foothold.
1
u/BeyondLimits99 Oct 21 '26
So vulnerable versions are currently < 8.5.11?
1
u/dirtyoldbastard77 Oct 21 '26
Woha… this sounds like it might be… fun...
1
u/HongPong Oct 21 '26
the sessions upload snippet is getting posted into vps commercial hosting that is happening
1
u/Individual_Return_48 Oct 21 '26
are the official docker images (8.5-apache) already patched?
1
u/wrick0 Oct 21 '26
in the provided PoC exploit it says this ?
# R4 NEG-CTRL : session.upload_progress.enabled=0 -> identical ARM body
# completes 200, no OOM. Proves the ini closes both bugs.
1
u/AegirLeet Oct 21 '26 edited Oct 21 '26
New details and patched versions: https://www.php.net/archive/2026.php#2026-10-21-5
1
u/jordanc26 Oct 21 '26
Patch now released - https://www.php.net/archive/2026.php#2026-10-21-5
1
u/Weekly-Art-5289 Oct 21 '26 edited Oct 21 '26
My box runs IIS and the https://www.php.net/downloads.php?os=windows page still doesn't have the 8.5.12...
Edit: Now it's there. ;)
1
u/eudaytrader Oct 21 '26
Plesk already pushed updates, info will be added here: https://support.plesk.com/hc/en-us/articles/44397729587351-Vulnerability-CVE-2026-109618-and-CVE-2026-109619-Remote-code-execution-in-PHP-shipped-with-Plesk
1
u/ComprehensiveBerry48 Oct 21 '26
FreshMeat:
1
u/eudaytrader Oct 21 '26
OpenAI about their involvement: https://openai.com/index/coordinated-disclosure-of-critical-vulnerabilities/
1
u/crackanape Oct 21 '26 edited Oct 21 '26
For Debian, to tell when you're up to date:
Debian 12 (bookworm): 8.2.35-1~deb12u1
Debian 13 (trixie): 8.4.27-1~deb13u1
We don't run bleeding-edge so someone else can fill in with the proper versions on 14+
1
u/Admirable_Thought_65 Oct 21 '26
Cloudlinux need hurry up 30 minutes over time cant update the server over terminal.
1
u/Scolas1978 Oct 21 '26
will Ondrej pubblish he patch? ... who knows ...
1
u/WrongElection4324 Oct 21 '26
Is the patch already available ? I tried updating from 8.4.26 to .27, but I'm getting a 503 error.
1
u/berzinsh92 Oct 21 '26
There is an update available for Docker users too
1
u/eudaytrader Oct 21 '26
So I'm seeing attacks running wild now on plenty of systems, captured via ModSecurity. Going to keep those servers down now until the new PHP versions are actually rolled out across all proxies of those hosters.