# Upgrade your PHP installs immediately to protect against php2shell

DevFeed: [Upgrade your PHP installs immediately to protect against php2shell](<https://devfeed.tech/articles/upgrade-your-php-installs-immediately-to-protect-against-php2shell-92957.md>)

Original publisher: [Read original article](<https://www.jeffgeerling.com/blog/2026/php-vulnerability-php2shell/>)

Author: jeff@jeffgeerling.com (Jeff Geerling)

Published: 2026-10-21T14:10:00Z

Content type: news

Language: en

Sources: [Jeff Geerling](<https://devfeed.tech/sources/jeff-geerling.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [PHP](<https://devfeed.tech/topics/php.md>), [upgrade](<https://devfeed.tech/topics/upgrade.md>), [Hugo](<https://devfeed.tech/topics/hugo.md>), [malware protection](<https://devfeed.tech/topics/malware-protection.md>), [hosting](<https://devfeed.tech/topics/hosting.md>), [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [attack](<https://devfeed.tech/tags/attack.md>), [automation](<https://devfeed.tech/tags/automation.md>), [cms](<https://devfeed.tech/tags/cms.md>), [costs](<https://devfeed.tech/tags/costs.md>), [critical](<https://devfeed.tech/tags/critical.md>), [discovery](<https://devfeed.tech/tags/discovery.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [hosting](<https://devfeed.tech/tags/hosting.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-distros](<https://devfeed.tech/tags/linux-distros.md>), [oom](<https://devfeed.tech/tags/oom.md>), [php](<https://devfeed.tech/tags/php.md>), [php-based](<https://devfeed.tech/tags/php-based.md>), [php-security](<https://devfeed.tech/tags/php-security.md>), [php2shell](<https://devfeed.tech/tags/php2shell.md>), [rce](<https://devfeed.tech/tags/rce.md>), [redhat](<https://devfeed.tech/tags/redhat.md>), [remi](<https://devfeed.tech/tags/remi.md>), [security](<https://devfeed.tech/tags/security.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>)

## AI overview

Two critical PHP advisories describe remote code execution through out-of-memory corruption and stale global state, each rated 9.2/10. The source urges upgrading PHP services to 8.2.35, 8.3.36, 8.4.27, or 8.5.12; users of Remi's repositories on Red Hat derivative distributions are advised to switch temporarily to official repositories because Remi cannot update his community repo. The cited Wiz.io report traces the exploits to PHP out-of-memory errors and fault-handling code dating back 20 years. The author says exploit demonstrations appeared within hours of the bugs becoming public, prompting some sites to disable public-facing services until upgrades were available.

## Source excerpt

This morning, two critical PHP Security Advisories were published: RCE via OOM corruption (9.2/10) RCE via stale global state (9.2/10) If you're running PHP for any service, you need to upgrade immediately to 8.2.35, 8.3.36, 8.4.27, or 8.5.12. And if you use Remi's repos on RedHat-derivative Linux distros, you need to switch to official repos temporarily as Remi's on vacation and can't update his community repo. (Reminds me of xkcd 2347). I'm glad I finished migrating this website from a PHP-based CMS to Hugo earlier this year--having a static website and a minimal commenting system saves on hosting costs and dramatically reduces attack surfaces. Especially in this era of AI tooling making exploit discovery easier.