Índice do artigofaltam 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 use | Status on October 22, 2026 | What to do | Who usually does it |
|---|---|---|---|
| 8.5, 8.4, 8.3 or 8.2 | official fix published | upgrade to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 and restart the PHP processes | the hosting provider, or whoever operates the server |
| 8.1 or 8.0 | no new release from the project; adapted fix and patched package in some Linux distributions | install the distribution package (Ubuntu 22.04 already has it) or apply the adapted fix; schedule the upgrade to 8.2 or later | whoever operates the server, with the migration on the calendar |
| 7.4 | same situation; on Ubuntu 20.04 only through Ubuntu Pro, Canonical's extended support, free for up to 5 machines | same path, with the migration on this week's calendar | whoever operates the server, and then a project |
| 7.3 or earlier, and any version 5 | no fix from the project; package only through a long-term support vendor | isolate, filter the requests reaching the site at the server in front of it, and treat the migration as a project | an 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.
- 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.
- 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?".
- 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.
- 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.
The US security agency recommended, according to TechCrunch, taking offline whatever cannot be fixed immediately. Workarounds and an edge firewall reduce exposure, but the PHP project itself says only the update solves it. For most companies, the path is to update and confirm it in writing.
By asking. Request the PHP version serving your site and the date of the update. The fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. On shared hosting, the provider applies it; on your own server, whoever operates it does.
The PHP project no longer publishes releases for version 7. There are patched packages in some Linux distributions, including through Ubuntu Pro, and an adapted fix, in source code, for 7.4. In both cases it is work for whoever operates the server, and the migration to 8 becomes a project.
As of October 22, none of the sources consulted had published a confirmed successful breach. There were attack attempts recorded by Cloudflare and by honeypot servers, and Sansec's October 22 analysis says the public attack demonstrations do not work against a default installation. An attempt is not a breach, and the decision is the same: update.
Whoever operates the server where PHP runs: the hosting provider, the agency that maintains the site or the IT team. If no one can say who that is within a day, that is the problem to solve first.
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.





