Skip to content
Ask for a Budget
NewsOctober 22, 20267 min readUpdated on November 10, 2026

PHP flaw opens servers to attackers: what to demand from your host

The October 21 PHP fix closes flaws that let an attacker control the server with no password: which version to demand and when the case becomes a migration.

PHP flaw opens servers to attackers: what to demand from your host
Índice do artigo
faltam 6 min de leitura

On October 21, 2026, the PHP project, the language behind WordPress, Drupal and many online stores and internal systems, fixed two flaws that let an attacker run commands on the server over the internet, with no password. The fix is on the server, not on the site, and whoever operates the server applies it. For anyone who buys a site or system built in PHP, the risk is having a server with no owner.

What to do: send whoever operates the server a one-line question: which PHP version is running and when it was updated. If the system runs PHP 7 or earlier, the answer is not an update, it is a migration project to budget for. If no one can answer, the company has found the most urgent problem in this case.

What happened and what is at risk

PHP runs on the server of seven in every ten sites whose language W3Techs can identify, according to its October 22 survey. Each of the two flaws received a score of 9.2 on a severity scale that goes up to 10, and the project's warning is simple: every PHP user should update immediately.

One of the flaws, according to the security company Wiz, also allows reading parts of the running program's memory, where passwords and keys to other systems may be stored. The defects have existed in PHP since 2012 and were found by two security teams, Wiz and Calif, working with artificial intelligence models. OpenAI says that, as far as it knows, the AI got there before the attackers.

The fix came out a day earlier than planned, because the flaws' identifiers leaked on October 20. In the early hours of the next day Cloudflare reported the first attacks, according to Sansec and BleepingComputer. As of October 22, however, no source consulted had published a confirmed successful breach, and Sansec revised its expectation of a mass attack downward: most of the published attack recipes needed a second defect in the site itself to work. An attempt is not a breach. The decision remains the same: update.

What to update, by version, and who does it

In the table, "Linux distribution" is the vendor of the server's operating system, such as Ubuntu and Debian, which packages PHP and delivers the fix. "Adapted fix" is the patch ported to the old version, in source code, which requires compiling the code into a program before installing it.

Version in useStatus on October 22, 2026What to doWho usually does it
8.5, 8.4, 8.3 or 8.2official fix publishedupgrade to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 and restart the PHP processesthe hosting provider, or whoever operates the server
8.1 or 8.0no new release from the project; adapted fix and patched package in some Linux distributionsinstall the distribution package (Ubuntu 22.04 already has it) or apply the adapted fix; schedule the upgrade to 8.2 or laterwhoever operates the server, with the migration on the calendar
7.4same situation; on Ubuntu 20.04 only through Ubuntu Pro, Canonical's extended support, free for up to 5 machinessame path, with the migration on this week's calendarwhoever operates the server, and then a project
7.3 or earlier, and any version 5no fix from the project; package only through a long-term support vendorisolate, filter the requests reaching the site at the server in front of it, and treat the migration as a projectan engineering project

A word of caution when choosing the target: 8.2 reaches end of life on December 31, 2026. Upgrading to it means repeating this conversation in two months.

How to know whether your company is exposed, without being technical

You do not need to open any server. There are four questions, and the fourth is the one that matters.

  1. Which sites and systems does the company have online? Website, online store, customer area, partner portal, intranet, the system the agency built five years ago. A list on paper will do.
  2. Which of them run PHP? WordPress, Joomla and Drupal run PHP. So do stores on Magento, WooCommerce or PrestaShop. The same goes for custom systems in Laravel or "plain PHP". If in doubt, ask whoever built it: "is this PHP?".
  3. For each one, which version and when was it updated? You can copy this message:

Hello. Because of the critical PHP fix of October 21 (PHP2Shell), I need to know which PHP version serves our site or system, when it was updated and, if it has not been updated yet, what the timeline is. The fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

  1. Who answered, and how quickly? An answer the same day, with version and date, shows that server has someone looking after it. If no one could say, or if the answer was "the site is up and working", that server has no owner.

Where the risk is higher and where it is lower

The risk is lower on managed hosting (where the provider administers the server) or a maintained Linux distribution that has already confirmed the fix, and for anyone running 8.2 or later with automatic updates. There is one caveat, which Ubuntu itself points out: automatic updates apply the package, but do not restart Apache with mod_php, a common setup on older servers, and without a restart the vulnerable process stays live. The firewall rule Cloudflare turned on reduces exposure, but Cloudflare itself treated it as temporary.

The risk is higher for internal systems exposed to the internet on PHP 5 or 7, with no distribution behind them; on servers with Apache and mod_php, where the PHP team demonstrated an attack that does not depend on a defect in the site; and for online stores, because, as Sansec points out, the defect is in PHP and not in the store's code. According to Sansec, Calif reported the attack as reachable on Magento, WordPress, Drupal, Joomla and Laravel.

Why this kind of alert will keep coming

Wiz writes that the most advanced AI models "substantially lowered that barrier, turning an old flaw into an exploit", that is, into code ready to attack. OpenAI says it expects "similar discoveries to increase sharply in the coming months". Read together, the statements suggest that the October fix is not the last of its kind.

The backlog is large. By our calculation on W3Techs data, more than a third of PHP sites run versions 7 or 5, which received no new release from the project. These are not abandoned sites: they are systems that work and that no one has had a reason to touch. Anyone who treats server updates as a rare event will receive more warnings like this one, and each costs less for those who already have a routine and someone responsible.

What it costs: update, migrate or do nothing

Updating is an operations task, for anyone on one of the four fixed versions: apply the package, restart the processes, check that the site came back. Anyone with someone looking after the server solves it the same day.

Migrating is engineering, for anyone on 7, 8.0 or 8.1. Replacing PHP 7 with 8 is rarely just swapping the program: the code breaks at known points and the whole system needs testing. There is no number that applies to everyone; what matters is finding out how many systems are in this situation, because each one is a project waiting for a budget.

Doing nothing has a different cost. A server with customer data taken over through remote execution is a candidate for what the LGPD (Brazil's data protection law) calls a security incident with relevant risk, which Article 48 requires reporting to the ANPD (Brazil's data protection authority) and to the data subjects. The assessment is case by case, but the comparison between an afternoon of operations work and an incident report is the one the decision-maker needs to have on the table.

Who answers for your company's server

This week's decision fits in a four-column spreadsheet: each PHP server, the version, who applies the update and the date it was applied. A row with no name in the third column is the real risk in this case.

That is what X-Apps delivers in a DevOps Operation contract: someone with a name answers for the server, security updates become a routine with a record, and the migration of the old system goes on the calendar with a budget. It is the continuous Drupal operation model X-Apps runs as UNICEF's technical partner, described in the UNICEF case.

How many PHP servers does your company have, and for how many of them can you say today who applies the update?

For whoever operates the server: the technical note

According to the project's advisory, every installation serving web requests is at risk: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. After installing the package, restart Apache with mod_php or PHP-FPM, because the old process remains vulnerable until then. Anyone installing PHP from remirepo should switch to the distribution package, as the advisory asked.

For those who cannot update right away, the project lists workarounds that reduce exposure without making the installation safe: memory_limit=-1 without the application being able to override it; a low post_max_size; session.upload_progress.enabled=0 in php.ini or in the pool, never via ini_set() or .user.ini, with a restart of all workers; and, on 8.5, fatal_error_backtraces=0. Attack signs listed by Wiz: unusual multipart requests followed by a memory_limit error, repeated HTTP 500 errors, large or malformed PHPSESSID cookies and unexpected worker restarts. Advisories GHSA-w8hw-w9fx-j79w and GHSA-6wmf-4rv5-p3rp have the full details.

Frequently asked questions

It depends on the server's PHP version, not on WordPress. WordPress told the press that the flaw is not in WordPress and that the fix is on the server, with the hosting provider. Updating WordPress, the theme or the plugins does not solve it.

Sources and method

Advisory and versions: php.net and PHP Foundation (October 21, 2026); Wiz Research and OpenAI (October 21, 2026); W3Techs and Sansec's review (October 22, 2026). Cloudflare attacks via Sansec and BleepingComputer; statements from WordPress and the US agency via TechCrunch. The one-third share is our own calculation. Attack reports cover October 21 and 22, 2026.

Previous post
An approved AI fix broke another part of the system: what to demand
Next post
Pentest-Tools.com: the scanner that flagged the PHP flaw at UNICEF
Newsletter

One email a month, no noise

What we learn shipping custom software and applied AI.

Related articles

An AI vendor took 84 days to report: what to put in the contract6 min · News
The US$ 500 ChatGPT for developers: cost and risk for client code5 min · News
AI that sorts tickets costs pennies: what else goes into the bill6 min · News
AI that reads very long documents can cost twice as much at OpenAI4 min · News
Your site may be out of ChatGPT search without anyone deciding it4 min · News

Accelerate your business with X-Apps

Ask for a Budget
X-Apps is an IT provider partner and advised by
Gartner
Receive our e-mails
News on software and applied AI.
Follow X-Apps