r/webdev • • Oct 20 '26

News PSA: Upcoming Critical PHP Security Release

https://www.wordfence.com/blog/2026/10/psa-upcoming-critical-php-security-release/

The release fixes two critical vulnerabilities, both rated 9.2 on the CVSS v4.0 scale.

377 Upvotes

67 comments sorted by

135

u/conchobarus Oct 20 '26

Man, I’m tired

10

u/SonicFlash01 Oct 21 '26

We should go full Office Space and take up construction. Get outside, build shit, go home. Use our wits to avoid debilitating accidents. Do webdev shit as a hobby, if anything. The internet sucks now.

3

u/mtbinkdotcom Oct 22 '26

Hi tired!👋🙋‍♂

126

u/jimmyhoke Oct 21 '26 • Popcorn

Honestly this is so bad I just shut my web servers off. People can read my blog later.

24

u/KnotGunna Oct 21 '26

Wordfence services are temporarily unavailable as we implement mitigations for the currently unpatched PHP2Shell vulnerability. Thank you for your patience.

7

u/I_AM_NOT_A_WOMBAT Oct 21 '26

I thought you were joking, wow.

9

u/RandyHoward Oct 21 '26

Our company took our servers offline as well

1

u/FalseRegister Oct 21 '26

I managed to update one wordpress site, but moved an older site from 2018 to fully static and notified my customer.

My only PHP running is Coolify, which sucks bc I love the project.

1

u/svish Oct 22 '26

Coolify is PHP-based?

1

u/FalseRegister Oct 22 '26

Yup. Time for someone to rewrite it in Rust!

/s

18

u/eneka Oct 21 '26

lol...was gonna submit my pto today and the HR site we use took their site offline due to this!

42

u/CharlieandtheRed Oct 21 '26

God damn, every day is a new security issue these days. WordPress has had like two major ones in just the last couple months.

12

u/ReferenceVisual663 Oct 21 '26

My job for the last month has turned in to just fixing an endless series of critical vulnerabilities. 

We have bots actively trying to exploit bugs as soon as they become public. 

-19

u/pale2hall Oct 21 '26

i know. im still up. rubberduck debugging w/ an AI figuring out a plan. gl; hang in there (hf sounds bad rn)

16

u/alphex drupal agency owner Oct 21 '26

Just update PHP when they release the patch.

8

u/ReferenceVisual663 Oct 21 '26

And consider shutting your site down until it’s out. 

37

u/avec_fromage Oct 21 '26

This will become such a big headache for companies still being on PHP 7.x and which never updated because it's "too difficult". People claim this affects all PHP versions. PHP 7 ended support in 2022 and I know so many companies still using it.

9

u/encrypt_decrypt Oct 21 '26

sury seems to be in contact with the php security team so I assume that he'll deliver a patch in his repos.

1

u/philipwhiuk Oct 22 '26

The size of the patch is huge - this is no one line fix so he deserves a lot of credit for bothering frankly

1

u/encrypt_decrypt Oct 22 '26

Yes, but to be fair, he writes about himself:
"I am a Debian Developer since year 2000, and I have been packaging PHP for Debian since PHP 5. That means the official packages in Debian and Ubuntu are either my work or they are based on my work. The PHP packages in my Ubuntu PPA and Debian DPA matches the official packages in Debian. Basically I am saying that you can’t get any closer than that."

5

u/Lywqf Oct 21 '26

It affects every version from 5.4 and up, so yeah, a lot of the web is impacted, and a lot of old sites / small blogs, small shops are fucked because they won't have the know-how to upgrade and get the fix.

4

u/Disgruntled__Goat Oct 21 '26

Looks like Ubuntu have backported patches for some versions. 7.4/8.0/8.1 are included, not sure about older versions.

49

u/Prestigiouspite Oct 21 '26
; Enable upload progress tracking in $_SESSION
; Default Value: On
; Development Value: On
; Production Value: On
; https://php.net/session.upload-progress.enabled
session.upload_progress.enabled = Off

I've taken some precautions

36

u/No_Code9 Oct 21 '26

This is not a full fix! Says a PHP developer. You need to update!

37

u/fuzzball007 Oct 21 '26

We literally can't update it at the moment, the patched versions aren't out yet. This is likely the next best thing until then

20

u/Irythros Oct 21 '26

Official recommendation by maintainers is to take any reachable PHP site offline until patch.

The upload_progress fix was confirmed by maintainer that it wont stop the problem.

1

u/[deleted] Oct 21 '26

[removed] — view removed comment

4

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.


Agreed, and thanks for the write-up. On shared hosting we couldn't rely on locking every pool (CLI, CGI and mod_php are uncovered by php_admin_flag, and panels regenerate pool files), so we went one step further: a tiny extension that unhooks ext/session's rfc1867 callback at MINIT. That makes the upload-progress handler unreachable no matter what any ini layer says, and uploads keep working.

https://github.com/HOSTED-POWER/php_uploadprogress_guard (disclosure: Hosted Power, we wrote it)

Same caveat as yours: it cuts the same code path as the ini setting, just harder to undo. If the "not sufficient" reports mean there's a route outside that handler, it won't cover that either. We'll know at 14:00 UTC.

0

u/[deleted] Oct 21 '26

[deleted] — view deleted comment

1

u/Disgruntled__Goat Oct 21 '26

https://www.php.net/archive/2026.php#2026-10-21-5

If you cannot update immediately: while only an update is a complete solution, the following measures reduce exposure to specific attack paths but do not make an installation safe.

2

u/pale2hall Oct 21 '26

related ?

Do we know any deatils about the underlying mechanism

10

u/Prestigiouspite Oct 21 '26

At this point, we're not supposed to disclose any details yet, so I'd prefer not to share any more information for now.

3

u/pale2hall Oct 21 '26

understood, thank you. ive disabled that setting so far; ty again.

2

u/wise_young_man Oct 22 '26

Had 2 fucking months notice. Fucking php security team.

19

u/Weak_Fisherman2215 Oct 21 '26 • Popcorn

Update for anyone landing here now - the patches are out NOW.

- 8.5.12, 8.4.27, 8.3.36, 8.2.35

One thing devs might miss - updating your app or composer packages won't fix this, it's PHP itself. If you deploy with Docker, rebuild on the patched base image and redeploy, don't just restart the old container. Same for CI images and anything pinned to an old php tag.

On managed hosting or a PaaS, check whether they've rolled it out as yet. If anything is still on 8.1 or older, there's no official fix - that's the push to finally upgrade.

7

u/n9iels Oct 21 '26

This is bad and everybody must take action ASAP. Do not trust mitigation that are posted in various places, there is no way of knowing it will protect you. If you can, go offline until the update is available (offline like, serve a static HTML page and do not expose anything PHP to the internet). If you cannot, at least backup and monitor until the update is applied.

9

u/drearymoment Oct 21 '26

Supposedly, this is a video of the exploit in action: https://x.com/k_firsov/status/2112641845926989944

26

u/creaturefeature16 Oct 21 '26

what kind of trash ass video is that?

16

u/drearymoment Oct 21 '26

A 1337 h4xx0r made it

4

u/pale2hall Oct 21 '26

::holds up spork::

1

u/drearymoment Oct 21 '26

Hahaha I forgot all about that!

2

u/Radiant-Gap4278 Oct 21 '26
Wordfence services are temporarily unavailable as we implement mitigations for the currently unpatched PHP2Shell vulnerability. Thank you for your patience.

2

u/Sad_Bookkeeper_8228 Oct 21 '26 edited Oct 21 '26

Just updated PHP on my Ubuntu server, fixes seems to be available via apt now, I am not sure. I am running php8.3 (8.3.6-0ubuntu0.24.04.13) after apt which is version where it is fixed

1

u/Far_Composer_5714 Oct 21 '26

Who is affected by PHP2Shell CVEs: PHP versions: PHP 8.2.x before 8.2.35
8.3.x before 8.3.36
8.4.x before 8.4.27
8.5.x before 8.5.12

1

u/fernker Oct 21 '26

I'm confused I thought we needed 8.3.36? I'm on the same version you listed but I'm not sure if the update is in that one

1

u/Sad_Bookkeeper_8228 Oct 21 '26 edited Oct 21 '26

See here for more: https://ubuntu.com/security/CVE-2026-109618. I THINK you should be fine running that version (8.3.6-0ubuntu0.24.04.13) , but I am no expert at all at these things. Ubuntu compiles there own version of packages.

1

u/Pesthuf Oct 21 '26

Still waiting for the fixed versions to appear on nixpkgs...

1

u/jachcemmatnickspace Oct 21 '26

Im tired boss

Im on hosting so i blocked all php and waiting for them to patch

I wanted a long sleep today…

1

u/Pegacow Oct 24 '26

Does this affect personal Wordpress sites or do webhosts typically make updates on customers behalf for these types of security risks?

1

u/CookieDelivery Oct 24 '26

Depends on the web host and type of hosting package you have. Only way to know for sure is to check your PHP version and see if you're on a patched version.

You can check that on your site health page under the server section:

https://example.com/wp-admin/site-health.php?tab=debug#health-check-section-wp-server (replace with your domain)

The only patched versions currently are: 8.2.35, 8.3.36, 8.4.27, 8.5.12. If it's anything else, you're still at risk.

1

u/nikomh Oct 21 '26

Something i noticed. Ondřej Surý has been migrating PHP packages from the old Launchpad PPA to packages.sury.org.

The repository timestamps : Repository Old ppa.launchpadcontent.net October 12, 2026 New packages.sury.org/php October 21, 2026, 13:37

so if the latest version is not available in the old address, try switching repo address.

1

u/ururk Oct 21 '26

That's what I had to do - and php.net has the new repo up as part of their official instructions.

1

u/retr00two Oct 21 '26

debian today's upgrade released patched version

-56

u/pale2hall Oct 21 '26

The shitty part is I only clicked this Title because it said PSA, and I my knee-jerk reaction was OH PSA Mew? Pikachu? Oh PHP... <wait for brain to load> PSA about ... PHP...? hmmm....? might be a nice easy read before bed.

0

u/[deleted] Oct 21 '26

[deleted] — view deleted comment

23

u/Irythros Oct 21 '26

Thanks Claude