Website owners around the world are being urged to patch PHP right away after researchers disclosed a set of critical flaws in the programming language’s core engine. The flaws, nicknamed “PHP2Shell”, can let an attacker run code on a web server without logging in.
The PHP project shipped fixes on 21 October 2026 in versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The bugs are tracked as CVE-2026-109618 and CVE-2026-109619.
What was found
Cloud security firm Wiz says its researchers found the problems, and that frontier AI models helped them turn decades-old weaknesses into working exploits. Wiz describes the chain of steps needed to prove the bugs were exploitable as “at the edge of what human researchers could practically achieve.”
According to Wiz, all of the flaws are memory-safety bugs in how PHP handles fatal errors, especially out-of-memory errors, while it processes requests. A request that ends unexpectedly can leave corrupted internal state behind, and a later request on the same worker can reuse it. Wiz says every PHP version released in the last decade is affected by at least one of the bugs, going back to version 5.4. It also says it showed unauthenticated remote code execution against the latest container images of WordPress, Drupal and Joomla.
Wiz notes that PHP powers about 70% of the world’s websites, including popular content management systems. Because the vulnerable code sits in PHP itself, sites can be exposed whatever application runs on top of it.
What governments are saying
The Canadian Centre for Cyber Security issued an alert saying successful exploitation could let an unauthenticated attacker run arbitrary code, and that internet-facing PHP servers face heightened risk. It said open-source reporting indicates a proof-of-concept exploit exists, although no active exploitation had been identified at the time of its alert. It warned that this “can change quickly.”
The Netherlands’ National Cyber Security Centre (NCSC-NL) says every PHP installation that serves web requests is at risk. That includes PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, and the risk is highest with mod_php. NCSC-NL also points out that PHP is built into appliances, network devices and management interfaces, where administrators may not be able to update it directly.
What to do
Both agencies advise updating to the fixed releases, or to backported packages from a vendor, as quickly as possible. PHP 8.1 and older no longer get updates from the PHP project. If patching can’t happen immediately, NCSC-NL lists PHP’s temporary mitigations, such as disabling session.upload_progress and restarting workers, but it stresses that these aren’t complete fixes.
For newsrooms, NGOs, businesses and government offices in Ethiopia and across the Horn of Africa, many of which run WordPress or similar PHP-based sites, the advice is simple. Check which PHP version your hosting provider runs, and ask for the update today.
Sources
- Wiz Research: PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet
- Canadian Centre for Cyber Security: AL26-026, Critical vulnerabilities impacting PHP
- NCSC-NL: php2shell operational information
