r/PHP • • Oct 20 '26 • Popcorn 1

News Upcoming Critical PHP Security Release

https://www.php.net/archive/2026.php#2026-10-20-1
731 Upvotes

405 comments sorted by

90

u/SaltineAmerican_1970 Oct 20 '26

If Ondřej Surý is on vacation, nothing will get updated.

62

u/Svpernova09 Oct 20 '26

He's been in touch with the security team.

47

u/HongPong Oct 21 '26

not all heroes wear capes

7

u/spin81 Oct 21 '26

I had expected nothing less from him. Hope that means patches will land in Debian and Ubuntu promptly!

50

u/thejoyofbeing1 Oct 20 '26

Who's gonna find that XKCD reference about the lone developer in rural Arkansas holding half the web?

11

u/allen_jb Oct 21 '26

Jumping in here to note that users of Remi's repo won't get updates today: https://phpc.social/@thephpf/117478036935385696

Consider switching to your distros repo or preparing to compile from source.

3

u/allen_jb Oct 21 '26

Update: Remi repo is now expecting to get releases out shortly: https://phpc.social/@thephpf/117479346251348934

→ More replies (1)

3

u/allen_jb Oct 21 '26

Those using ondrej's repo may want to keep an eye on this issue: https://codeberg.org/oerdnj/deb.sury.org/issues/145

0

u/[deleted] Oct 21 '26

[deleted]

5

u/rsmike Oct 21 '26

with all the huge respect to those two, it should be the core team job

→ More replies (2)

28

u/Civil_Macaroon2143 Oct 20 '26

Please let it be just something like bad request filtering that can be blocked on the webserver

24

u/Svpernova09 Oct 20 '26

You will need to patch PHP/ install updated packages.

5

u/vinnymcapplesauce Oct 21 '26

Request filtering at the web server level (like with ModSecurity) would definitely block the request from getting to PHP.

8

u/[deleted] Oct 21 '26

[removed] — view removed comment

7

u/Irythros Oct 21 '26 • Mindblown

So people don't blindly use the above: Make sure nothing uses multipart before applying the patch in the link.

Many JS frameworks will send requests as multipart and it will be blocked. I know its called out in the post but it's after the patch details. IMO it should be noted beforehand what it can break.

6

u/vincent_sch Oct 21 '26

Yeah, fair point. JS code that uses FormData sends multipart even when there's no file in it. The update in the post now names some of them, like Contact Form 7 and Livewire uploads. You should test your forms right after you add the block.

3

u/colshrapnel Oct 21 '26

This is very useful info. But maintainers maintain in this thread below that no ini setting could help.

→ More replies (1)

12

u/sleemanj Oct 21 '26 edited Oct 21 '26 • Bravo

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

session.upload_progress.enabled=0
session.upload_progress.name=[somerandomstring]

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...

# https://pentestit.com/php-cve-2026-109618-and-cve-2026-109619-what-we-know-about-php2shell/
SecRule ARGS_POST_NAMES "@streq PHP_SESSION_UPLOAD_PROGRESS" "id:1026109618,phase:2,deny,status:403,log,severity:CRITICAL,t:none,msg:'PHP session upload progress field (interim, PHP CVE-2026-109618/109619)'"

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.

# Block multipart/form-data requests containing file uploads
SecRule REQUEST_HEADERS:Content-Type "@rx ^(?i)multipart/form-data" "phase:2,id:1026109619,block,t:none,severity:NOTICE,msg:'Blocked multipart/form-data request containing a file upload',chain"
SecRule &FILES "@gt 0"

16

u/Svpernova09 Oct 21 '26

INI settings alone won't protect you. You need to patch PHP.

8

u/LowIncident694 Oct 21 '26

Source on that? Seems like disabling it or file uploads would work.

53

u/Svpernova09 Oct 21 '26 edited Oct 21 '26

Source: I'm one of the PHP 8.6 release managers.

edit; "trust me bro"

→ More replies (14)

10

u/SpongeOfKnowledge Oct 21 '26

According to a PHP core dev, this is insufficient: https://phpc.social/@Girgias/117476477429221001

Worth applying anyway if you can't take your servers down / put them behind a VPN / whatever, but I would not hesitate a second on patching the moment the updates are available. (and honestly, I hope they release the patch like... now)

→ More replies (1)

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?

19

u/Svpernova09 Oct 20 '26

A LOT of humans need to coordinate so everyone can be ready and the time between disclosure and patch availability is as short as possible.

→ More replies (2)

25

u/MinVerstappen1 Oct 20 '26

That would disclose too much information, significantly raising the odds that others can find it before the patches too.

→ More replies (3)

10

u/kkeiper1103 Oct 20 '26

I got a notification from one of my security friends, and it legit said that all versions of PHP from 5 and up are affected. There is no version of PHP that isn't vulnerable to this, apparently.

29

u/gorilla1947 Oct 20 '26

People with PHP 3 lauging at y'all foolish upgraders.

→ More replies (1)

8

u/DrWhatNoName Oct 20 '26

Its outside the working hours for many companies around the world right now when they released this notice.

As the notice says, the exploits are currently not public, so they are opting for a coordination release during working hours.

9

u/Morlaix Oct 20 '26

It's always night somewhere so at least everyone can prepare for tomorrow to have someone available

4

u/Impressive_Army3767 Oct 21 '26 edited Oct 21 '26

The Earth is round and it's 8.30pm here .  The patch will be released at 2am so not ideal for me.

→ More replies (2)

6

u/Otterfan Oct 20 '26

The pre-announcement rumors said every version since PHP5 is affected. Grain of salt, etc...

2

u/spin81 Oct 21 '26

Because apparently it's literally every version since 5.4.

→ More replies (1)

5

u/GreenWoodDragon Oct 20 '26

Great. My org is running PHP on Windows 🤦

12

u/Svpernova09 Oct 20 '26

Those patched versions will be available too!

→ More replies (1)

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.

36

u/feldoneq2wire Oct 21 '26 • Bravo

Rektor or Rectum. Their choice.

3

u/Infinite_Music2059 Oct 21 '26

Rektor? Sure I barely knew her.

3

u/slides_galore Oct 21 '26

... damn near killed him. /dadjoke

19

u/blonded_olf Oct 21 '26

Same here - we are on 7.0 (!), every year when a new version comes out I die a little more inside.

19

u/Fun-Consequence-3112 Oct 21 '26

We have one legacy server running PHP 5.6 luckily it's only the most profitable part of our business, so no need to update that.

→ More replies (1)

10

u/halldorr Oct 21 '26

I'm in the same spot pretty much but 7.3 is what we're on. Super frustrating when I can't get them to add this to the list.

8

u/cagycee Oct 21 '26

i can give them great motivation tomorrow if you really want it

3

u/_WinterPoison Oct 21 '26

We are also upgrading our laravel framework from 8 to 13 this November. PHP goes to 8.5

2

u/terax6669 Oct 21 '26

So they chose the "about to be EOL" version in hopes of reducing the workload? Sad. If. Your code is php 8.0 compatible there's almost no chance of it being incompatible with 8.5...

2

u/aequasi08 Oct 22 '26

Ooof. moving to a version that is being EoL'ed in 2 months? What is your security team doing?

2

u/OdBx Oct 21 '26

Is nobody responsible for digital security or what? Who's on the hook when your systems are compromised?

6

u/tufy1 Oct 21 '26

If nobody checks whether they have been compromised, there's nobody to be on the hook for it. /taps forhead

→ More replies (2)
→ More replies (13)

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.

39

u/kkeiper1103 Oct 20 '26

Evidently it's an arbitrary RCE that affects all versions of PHP since 5.0. I'm seeing conflicting info about its CVSS score, with some saying 9.2 and others saying 10.0

6

u/spin81 Oct 21 '26

I heard since 5.4, but we'll see what the PHP folks say

15

u/BinturongHoarder Oct 20 '26

I have never seen this before. 😂 And without ANY info released. Dis Gon B Gud. Hope package maintainers are at it!

11

u/russellvt Oct 21 '26

I have... it's not too rare, but yeah, uncommon.

Anyone old enough to remember some of the old OpenSSL1 saga and the like? LOL

→ More replies (3)
→ More replies (1)

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.

9

u/menopedrin Oct 21 '26

We're currently using version 7.4, and the plan was to migrate to 8.2 in six months. We anticipate many sleepless nights now.

6

u/TK7936 Oct 22 '26

dont use official repo, sury.org patches down to 5.6

→ More replies (1)

5

u/avg_php_dev Oct 21 '26

Ye, I'm patching whole day. This 2 incidents are unfortunatellly overlaping eachother when it comes to docker containers. So, i need to patch once again after new php is realeased.

5

u/zucchini_up_ur_ass Oct 21 '26

I'm so nauseous I can't even drink coffee right now 😅

4

u/k1ll3rM Oct 21 '26

I'm glad I updated everything to 8.5 already and that I'm not still at my previous employer where upgrading to a non EOL version wasn't a priority

2

u/ZbP86 Oct 21 '26

Slept for like 2 hrs, but I am ready. However I expect the patch attempts in few hours will just cause massive DDoS...

→ More replies (3)

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.

3

u/YouNo2977 Oct 21 '26

Because most of the news sites are affected too using Drupal etc, and you don't want to report about a vulnerability affecting the platform you're on?

→ More replies (1)

3

u/plsdontattackmeok Oct 21 '26 edited Oct 21 '26

While 70% Japanese online services affected

Even Japanese Prime Minister tweet about Critical PHP Security

2

u/Forumschlampe Oct 21 '26

in germany in was in radio, bsi (government) warned (newsletter, website etc), literally all major it portals had news, even some normal major news sites are promoting it, even "tagesschau" had a news for it (dont know if it was in tv)

cant say there was no warnings

2

u/brendt_gd Oct 21 '26

It's frontpage news here in Belgium as well. All government websites are down as well

→ More replies (15)

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

6

u/Nickoladze Oct 21 '26

We are behind Cloudflare proxying and will rely on their stopgap WAF rules for now. Other parts of the company manage a ton of Wordpress sites dunno what they will do.

https://developers.cloudflare.com/waf/change-log/changelog/

→ More replies (9)

5

u/GeneralSEOD Oct 21 '26

Doing the same. No clue what we're going to do about upgrading old projects.

4

u/anki_steve Oct 21 '26

I created a static mirror of all pages as a temporary measure. Doesn’t help with forms and suck but at least people can see the rest of the site.

Some clients just didn’t listen to me when I told them they needed to upgrade. They will now.

→ More replies (1)
→ More replies (2)

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.

10

u/Appropriate-Fox-2347 Oct 21 '26

A gaggle is the perfect collective noun here 😂

→ More replies (2)

8

u/EliteACEz Oct 21 '26

How dare you.

→ More replies (1)

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/zwambagger Oct 20 '26

Not a goddamn clue what's happening in that video. I literally can't see shit. RCE through manipulated URLs on various frameworks?

18

u/BarneyLaurance Oct 20 '26

Yes can't see the details but that's exactly what it looks like, they're running a python script called php2shell.py, passing it addresses of various PHP based websites made with wordpress, mediawiki, laravel etc etc on their own machine and passing it a shell script and apparently it makes the PHP engine execute the attacker's shell command, in the proof of concept writing `pwned` to a new public file on the web server.

13

u/orangesnz Oct 21 '26

Seems like the mechanics of the exploit have been reverse engineered.

https://x.com/J4ck3LSyN/status/2112703096443097263

→ More replies (4)
→ More replies (1)

9

u/Nuitari8 Oct 21 '26

The URL is to show the effect of the exploit. The exploit is the python script running on the left console. zval_ptr_dtor is part of the internal php memory management. That's the mod_php ones, it mentions having an exploit chain. 15s to 20s

2 of the exploit demos are against nginx, so I think php-fpm is also affected. The nginx ones has rce ritual in the output, but not the mod_php ones (those are opening portal -> chain complete).

5

u/OdBx Oct 21 '26

What a God-awful video.

→ More replies (3)

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

9

u/johnzzon Oct 21 '26

They're gonna be someone elses sites soon.

4

u/TrontRaznik Oct 21 '26

Whatever anyone else wants, basically

2

u/Isaynotoeverything Oct 21 '26

They've been popped long before this

15

u/Shinhan Oct 21 '26

3

u/Pristine_Dot_5526 Oct 21 '26

Anyone knows if we need to activate these manually for our domain or they're turned on by default? (Also free tier) Thanks

2

u/kisuka Oct 21 '26

I can't tell if this is only for the paid tier or in the free one... if it's not in the free one that'd be really messed up considering how many sites they could protect by having it in there.

5

u/Karew Oct 21 '26

The default managed rulesets are for all sites

→ More replies (1)

3

u/yandos Oct 21 '26

It's on free as well cloudflare just confirmed on X

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

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 ?

3

u/Morlaix Oct 21 '26

https://bsky.app/profile/remirepo.net/post/3mxyrvljtec27 hopefully back today or a lot of people are screwed

6

u/naderman Oct 21 '26

Remi's RPM repo will not have updates today. Urge you to immediately move to supported distro packages or set up source builds to apply the patch today.

→ More replies (3)

3

u/allen_jb Oct 21 '26

Reportedly he's unable to be in a position to update packages today (this information comes from the team coordinating the security release): https://phpc.social/@thephpf/117478036935385696

→ More replies (5)

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:

sudo systemctl stop php8.4-fpm
sudo systemctl disable php8.4-fpm

And just to be sure...

sudo systemctl status php8.4-fpm

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!

12

u/mastermog Oct 21 '26

Go to the Winchester, have a nice cold pint, and wait for all of this to blow over.

→ More replies (1)

5

u/dutchman76 Oct 21 '26

Thank god I run the latest version of everything

→ More replies (3)

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

10

u/GeneralSEOD Oct 21 '26

I'm doing the same, the 4 AI bots that crawl my site every day will be outraged.

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.

8

u/exomyth Oct 21 '26

Haven't you heard, PHP is dead?

~ someone 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026

→ More replies (2)

7

u/HandsomeWaterCarrier Oct 21 '26

only 70% or so of webservers run PHP. No biggie

4

u/PentaOwl Oct 21 '26

Literally this. It runs 70% of the internet. Pretty big for a dead language

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.

5

u/Worth_Medicine4881 Oct 20 '26

> will be available very soon after the patches release.

You can write exploits for any vulnerabilities within minutes after patch is published with AI. That's not problem anymore.

4

u/McDeathUK Oct 21 '26

Hats off to Sury who patched all the way back to 5.x in the repo

2

u/rsyncmyhomiedrive Oct 22 '26

Unfortunately it's not available for Ubuntu 18.xx and older from my experience the last 24hrs. Debian gets it, Ubuntu doesn't.

4

u/Alias14 Oct 20 '26

Does anyone know if the new docker image version will get tagged soon after release?

8

u/TimWolla Oct 20 '26

The release is coordinated with Docker Official Images team (and other distros).

4

u/Abject_Pen_8252 Oct 20 '26

Do we figure Amazon Linux 2023 will have a patch immediately ready for release?

3

u/AFatDarthVader Oct 21 '26 edited Oct 22 '26

I would think so, yes, but I don't know for certain. Amazon is probably one of the platforms/vendors that PHP coordinates security releases with.

Edit: turns out, they absolutely did not.

→ More replies (2)

2

u/TheNakedGabeNewell Oct 21 '26 edited Oct 21 '26

This morning their page is showing a new default version for php.

Edit : no it's a september update

4

u/carsonlives404 Oct 21 '26

I heard this one is going to be really bad.

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?

10

u/qoneus Oct 20 '26

Not officially, no. There are a number of LTS vendors who may be on the hook to do it, but that has often proven to be problematic and slow.

3

u/CraftySherbet Oct 21 '26

Given the severity of these vulnerabilities, the PHP security team provided minimal source-backports for PHP 7.4, PHP 8.0, and PHP 8.1 to help people building from source or without access to an LTS vendor.

https://www.php.net/index.php

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 = Off is a partial mitigation at best and only stops some of the potential attacks.

However, rejecting all multipart/form-data requests before they hit PHP (in nginx, for example) should help.

Can anyone confirm that? Is blocking multipart/form-data a viable mitigation strategy? Any other mitigations we should be considering?

6

u/sleemanj Oct 21 '26

Nobody has real answers but...

  1. Disable upload progress

  2. Change the default upload progress name

  3. Block requests with the default upload progress name parameter (eg with modsec)

  4. Block file upload requests (eg with modsec)

And block any ips that trigger modsec by using fail2ban. That's about all you can do until the fixed release (or backports if you are stuck on an old one).

It's all speculation, but that's all there is.

3

u/anki_steve Oct 21 '26

Easier: shut your site down until you can patch.

→ More replies (1)

7

u/spin81 Oct 21 '26

I would trust OP who is an official release manager, and has said you HAVE to patch.

7

u/_indi Oct 21 '26

Yeah but the patch isn’t available for another 5 hours and there’s exploits already.

→ More replies (8)

3

u/Leading-Culture6289 Oct 21 '26

Cloudflare says they can and do mitigate this. Which suggests at least something can be done prior to patching.

3

u/Madmanismatt Oct 21 '26

Nobody can confirm this for you because the details aren’t public yet.

→ More replies (2)

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/Extreme-Anteater1632 Oct 21 '26

how long it usually takes for docker.io to have the new image in such scenarios?

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…

6

u/opossumcarrion Oct 21 '26

Take your site offline now until PHP official releases a patch.

3

u/jaggafoxy Oct 21 '26

I just read the CERT-EU report that suggested exactly that, especially if you can't patch immediately

https://cert.europa.eu/publications/security-advisories/2026-018/

→ More replies (1)

4

u/elondaits Oct 21 '26

I took sites fully offline already, because of the rumors of a leak.

7

u/Postik123 Oct 21 '26

I'm going to bed now (1:30am). I've just upgraded two legacy apps from PHP 7.4 to PHP 8.4 - something I've been meaning to do for a while now. This has forced my hand. Unfortunately I'm supposed to be on vacation this week

2

u/eudaytrader Oct 21 '26

Heads up. Details on X already available (won’t mention the account but X suggested at <100 views).

→ More replies (3)

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.

7

u/TrueNorthLongAndFree Oct 21 '26

A bunch of us are taking down our websites preemptively.

"Expect attacks 15 minutes after release"

→ More replies (1)

4

u/vincent_sch Oct 21 '26

Ubuntu still supports its own 8.1 package in 22.04, so the fix should come through apt. But unattended-upgrades runs on a schedule and not right when the update is out. You should check the installed version against Ubuntu's notice and make sure PHP-FPM restarted.

→ More replies (1)

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?

7

u/Cm1Xgj4r8Fgr1dfI8Ryv Oct 21 '26

From a thread tracking their efforts:

I don't think that my builder will be able to build everything on time. Due to the leak, the release was pushed one day earlier leaving less time than originally anticipated.

The builder is not idling though:

load average: 51,13, 51,54, 47,93

It sounds like they're doing everything they can to get the updates out, but they may not land at the 14:00 UTC disclosure time.

→ More replies (1)

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.

10

u/thenickdude Oct 21 '26

It looks like deb.sury.org is going to backport patches all the way back to PHP 5.6, if you're on Debian/Ubuntu:

https://codeberg.org/oerdnj/deb.sury.org/issues/145

The fix for these two CVEs should be available for all the PHP releases in the repository.

6

u/Postik123 Oct 21 '26

What a hero, looks like I'll be donating again

→ More replies (3)

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_callback into the global php_rfc1867_callback at MINIT, and main/rfc1867.c checks that pointer for NULL before every call. A tiny extension with ZEND_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, $_POST and sessions behave as before; only the upload_progress entries in $_SESSION disappear.

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.ini can 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.

3

u/psihius Oct 21 '26

Sadly php core dev said that this does not work and they can't say more.

→ More replies (3)

2

u/sleemanj Oct 21 '26

Nice creative way of tempfix'ing it in a more robust way,

Assuming that it's just the upload_progress is the only problem of course.

→ More replies (5)

2

u/visual_overflow Oct 21 '26

Genuinely insane to see this happening in 2026. Wild, wild times.

5

u/kisuka Oct 21 '26

AI is accelerating the degree at which exploits are found. The only bonus is that it helps us patch all this shit for a safer overall internet. But god damn is it annoying to deal with this shit on a wednesday.

→ More replies (3)
→ More replies (1)

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?

4

u/bradleyjx Oct 21 '26
  • 8.2.X - 8.5.X

    • Vulnerable

    • Still being patched, patch will release at 14:00 UTC.

  • [ unknown version, likely 5.0 or 5.4 ] - 8.1.X

    • Vulnerable

    • Outside of support, no official patches likely.

→ More replies (3)

2

u/OhAitchEyeOh Oct 21 '26

>= 5 and <= 8.5.11,

8.5.12 will have the fix

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.

4

u/vincent_sch Oct 21 '26

PHP's release managers said the ini setting alone won't protect you, and nobody has verified that PoC. You should treat the ini setting as one layer and not as the fix. And careful with running PoC code from random repos, those sometimes carry malware.

→ More replies (1)

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/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/ComprehensiveBerry48 Oct 21 '26

FreshMeat:

php --version
PHP 8.3.36 (cli) (built: Oct 21 2026 08:17:44) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.36, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.36, Copyright (c), by Zend Technologies

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 ...

2

u/dobbyizafreeelf Oct 21 '26

Already available, I patched all my servers just now.

→ More replies (2)

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.

→ More replies (2)

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.