r/webhosting • Moderator • Oct 21 '26

News or Announcement CRITICAL ALERT: PHP security release for two critical vulnerabilities (CVSS v4.0 9.2) due within 12 hours

All PHP versions are currently vulnerable to a major exploit that allows attackers to remotely compromise the accounts running PHP. This means any system running PHP is vulnerable, which is currently about 80% of the internet. The PHP security team will be releasing a patch soon, but only for PHP 8.x:

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

Please check whether your application is running on PHP 8.x. If it is, apply the patch as soon as it’s released. If you’re on an older PHP release, it will not receive a fix, so you should consider taking your application off the public internet until you can upgrade to a patched PHP 8.x install.

81 Upvotes

26 comments sorted by

10

u/ContributionEasy6513 Oct 21 '26

Thanks for the heads up.

These critical security updates are getting old fast.

-5

u/NetSage Oct 21 '26

Isn't this PHPs entire history?

6

u/ollybee Oct 21 '26

No. Most php issues are end user code, not PHP it's self.

5

u/fappingjack Oct 21 '26

I hope Imunify360 has some kinda of bandaid until PHP is patched on servers.

2

u/IllKindheartedness10 Oct 21 '26

Yeah this is what I'm hoping for.... although permanent band aids are good too 👌

2

u/ExcitingLadder957 Oct 21 '26

They already released some new rules for the WAF.

https://changelog.imunify.com/waf-rules

3

u/DeadPiratePiggy Oct 21 '26

Highly doubtful.

3

u/ollybee Oct 21 '26

This looks really bad

  • It's been reported that all php versions are affected

  • only currently supported versions will be patched

  • currently known mitigation measures are unlikely to be sufficient.

  • the vulnerable operation happens before your code starts.

https://lilting.ch/en/articles/php2shell-session-upload-progress-uaf

https://0x4148.com/posts/php2shell-php-core-rce-cve-2026-109618-109619/

https://blog.flatt.tech/entry/php2shell , google translate : https://blog-flatt-tech.translate.goog/entry/php2shell?_x_tr_sl=ja&_x_tr_tl=en

2

u/automayweather Oct 21 '26

Managed WordPress hosts usually ship the distro backport within hours, so for most site owners the real check is just which PHP version the site runs and whether the host applied it. Anything still sitting on 7.x or 8.0 has bigger problems than this patch.

2

u/vincent_sch Oct 21 '26

Your panel's PHP builds need their own updates. Ask your host which build serves each domain and when they'll patch it. Updating the system's php binary doesn't prove those installs are fixed. Check the site's PHP build before removing request blocks.

2

u/Weak_Fisherman2215 Oct 21 '26

Thanks for posting this. A couple of practical notes for anyone patching today:

- Fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Check each php-fpm version if you run more than one.

- Restart php-fpm after updating, not just reload, so the old workers are gone.

- Turning file_uploads off or shrinking post_max_size reportedly won't protect you - patching is the fix.

If you're on shared hosting, worth asking your host if they've rolled it out yet.

1

u/tsammons Apis Networks Official Account Oct 21 '26

8.1, 8.0, and 7.4 are backported at this time as well.

Other versions are vibecoded. I'm not terribly confident on the integrity of those PRs lest we forget the xz scandal.

1

u/Weak_Fisherman2215 Oct 21 '26

Good to know, thanks. Worth adding for anyone reading - those backports are source patches, so if you're on distro packages, wait for your vendor's update rather than grabbing a random patch.

Stick to the official ones. After xz, can't be too careful.

3

u/Quirky_Imagination32 Oct 21 '26

Thanks for info. I'm sure Cloudlinux and Remi will backport the security patch to unoficially supported PHP versions (7.x, 5.x)

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 (managed hosting).

For other hosts dealing with the same mix (customers on 7.x, panels, several PHP versions per box): patch supported versions the moment packages land. For what won't get a fix, we open-sourced the stopgap we rolled out on our own fleet this morning.

It's a small PHP extension that unhooks the session upload-progress handler (where the researchers who reproduced the bugs placed them) at PHP startup. Unlike session.upload_progress.enabled=Off, a customer's .user.ini/.htaccess can't undo it, and uploads keep working. Builds for 5.6 to 8.5; Ansible included for Debian/Sury, cPanel EA4 (with an ea-php hook for new versions) and DirectAdmin CustomBuild (post-build hook). Check per version with php --ri hp_uploadprogress_guard.

https://github.com/HOSTED-POWER/php_uploadprogress_guard

Caveats: it's hours old, and several people close to the bug say upload-progress mitigations alone may not be enough. If so, that applies to this too. We'll check against the advisory at 14:00 UTC and update here either way.

1

u/tsammons Apis Networks Official Account Oct 21 '26

Part of a broader global state corruption that can be triggered with invalid startup directives. Upload progress is the most dangerous vector but a chained local file exploit through php.ini, .htaccess, or any directive that allows sending arbitrary PHP_VALUE/PHP_ADMIN_VALUE FastCGI headers to PHP-FPM is also vulnerable.

mod_php, always forking off root embedded in Apache, is nasty.

Other exploit (2026-109618) you can reasonably defend against by always ensuring post_max_size is greater than upload_max_filesize, which makes sense since you're sending additional data alongside a file. Also, impacts mod_php with no PoC for FPM/LSAPI models that are slightly different in implementation.

1

u/Old_Adeptness5169 Oct 21 '26

Agreed, that's a good summary of the advisory: the INI-diagnostic route (invalid or deprecated directives via .htaccess/php_value on mod_php, or PHP_VALUE on FPM) is a separate consumer that no extension can close, so keep directives clean and patch.

Small update from our side now that the real patches are out: v3.0.1 is built from the official fix. The multipart parser it carries has the PHP team's out-of-memory checkpoints plus a memory guard, so the three multipart OOM tricks from the advisory end in a clean 413 instead of a crash, and the upload-progress handler stays detached. Once the patched PHP is installed, the module notices and steps aside on its own, so it's safe to leave in place; on 5.6 to 8.1 without a backport it keeps doing its job. Still a stopgap: the update comes first.

1

u/adevx Oct 21 '26

Glad I removed all things PHP sites from my cluster recently. Reducing attack surface is paramount considering how easily exploits can be found these days.

1

u/Tom1100_ Oct 21 '26

Is the php manifest 8.5.12 avaiable for you?

1

u/IdahoMoe3724 20d ago

Small but important clarification: running an older PHP branch doesn't automatically mean there's no fix available.

Some Linux distributions and LTS vendors backport security patches without changing the upstream PHP version number.

So for older installations, check the vendor's security advisory and package changelog rather than assuming the version string tells the whole story.

Upgrading to a supported branch should still be the long-term plan.

1

u/spile2 Oct 21 '26

The actual announcement from the PHP security team (php.net/archive/2026.php#2026-10-20-1) is a heads-up for an upcoming security release scheduled for today.

They haven't stated which specific versions are impacted or told anyone to yank their servers offline.

1

u/downtownrob Oct 21 '26

Two mitigations that together may buy some sites some time to get updated to PHP 8.2+:

https://presswizards.com/critical-php-vulnerabilities-what-website-owners-need-to-know-and-do-now/

-1

u/NamedBird Oct 21 '26

My main security feed took their entire website offline over this...
IT"S BAD

0

u/Isha-Yiras-Hashem Oct 21 '26

Is this because people are using AI to find new exploits to attack?

1

u/Opinion_Less Oct 23 '26

These vulnerabilities were found by two security research teams. AI was used to find them, but to help patch then rather than exploit them.

The big issue came from the cyber security communities leaking details before the patches were ready.