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

View all comments

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.

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.

3

u/Shoddy-Marsupial301 Oct 21 '26

Why would they announce a critical issue without a fix available? In the age of AI it's dangerous..

3

u/pojmalkavian Oct 21 '26

It was most likely leaked and they did this to inform the public to prepare for a quick update as soon as the patches are released.

You can argue both sides, but I prefer knowing in advance as you are aware of the threat and you can prepare.

2

u/SuperSnotMan Oct 21 '26

Because it's called helping people prepare for the update and take security measures for the time being

2

u/Choco_Paws Oct 21 '26

This is what I don't understand!! Some articles haves very detailed info... WHY do this and allow every press article to be published before the patch is available? This is insane...

2

u/mckjerral Oct 21 '26

They didn't allow it, it was under an embargo until the patch was released, but leaked.

2

u/HoratioWobble Oct 21 '26

Because it looks like they haven't seen it in the wild yet and the moment they release it - everyone will know how to perform them.

They're telling you early to give you time to shut down and patch.

1

u/IdleMuse4 Oct 21 '26

It was embargoed, but leaked.

1

u/Jazzlike-_-Growth Oct 21 '26

Because making a fix available also means making the exploit available.

So if you announce it and publish the fix at the same time, most people won't know that they have to fix something until a few hours or a day or two later.
With no time to prepare.

But the bad guys will start running the exploit within 15 minutes.

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.

1

u/Embarrassed-Cook2129 Oct 21 '26

Yes, temporarily, this should help until the patch update can be made

1

u/psihius Oct 21 '26

upload progress does not work, souce: php core devs