Key takeaways
- On October 21, 2026, the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two critical vulnerabilities (CVSS 9.2), known as "php2shell", that allow unauthenticated remote code execution. Details had leaked the day before.
- PHP says every installation serving web requests is at risk, and the risk is highest for Apache mod_php, where a single unauthenticated request can trigger the attack before any application code runs. PHP 8.1 and older get no official release; PHP published minimal source backports for 7.4, 8.0 and 8.1.
- Ahead of the release, Japanese services from pixiv, DMM.com, niconico and the shop platform BASE to the childcare app Codmon went into emergency maintenance, along with some municipalities.
- Japan's National Cyber Office said temporarily stopping websites is an effective way to reduce risk if patching quickly is difficult, and Prime Minister Sanae Takaichi repeated it in a post on X that evening, calling it an "urgent request".
- In our view, it was a day that showed how far Japan's cyber response has come: a pre-alert acted on within hours, by companies and government alike. Pausing an internet-facing service until a critical fix is applied is a legitimate security decision, not a failure.
Update, October 27: The US CISA added both flaws to its Known Exploited Vulnerabilities catalog on October 26, confirming active exploitation, and gave US federal agencies until October 29 to fix them and check for compromise. Palo Alto Networks says its PAN-OS firewalls are affected through the PHP used in their management web interface and XML API, with fixed versions rolling out through October 30. If your firewall's management interface is reachable from the internet, restrict it now.
Update, October 23 (evening): Codmon has published a detailed account of how it decided to stop its services in the middle of the day, the options it rejected, and how it got back by morning when patched packages were slow to arrive. See How Codmon made the call.
Update, October 23: JPCERT/CC and IPA have published full advisories. We have added a checklist for people who run PHP systems: confirming the fix is really in place, which logs to review and from which date, why finding nothing is not an all-clear, and what to do with systems that cannot be fixed. See What operators should check.
Correction, October 29: Valtec, which we described below as a Japanese company hit through the PHP flaws, has since corrected its first notice: the attack exploited a vulnerability in its own service, not PHP, and malware was placed on its server on October 20, before the PHP fix was released. We have corrected the section on exploitation.
Update, October 22 (evening): Attackers are now trying to exploit the flaws. (Corrected October 29: we first said Valtec had reported an attack it attributed to them; it has withdrawn that attribution.) Governments in Europe and Canada took their own sites offline. See Exploitation has begun.
Update, October 22: PHP has released the fixes and its advisory. We have added the affected and fixed versions, the cause, the interim measures, and the wider pause across Japan, including the Prime Minister's call. See The release and A country that hit pause.
- In our view, pausing an internet-facing service until a critical fix is applied is a legitimate security decision, not a failure. It is the right call when a flaw is this serious, this widely deployed and already leaked.
The release#
Added October 22, 2026.
The PHP security team published its advisory with the release, scheduled for 14:00 UTC on October 21 (23:00 in Japan). Codmon's records put the release and the details at 22:38 Japan time, a little ahead of schedule.
| Fixed versions | PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Linux distributions and long-term support vendors received the patches in advance |
| Who is at risk | All PHP installations serving web requests: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. Risk is highest for mod_php, with a demonstrated exploit in which an unauthenticated request triggers the attack before any application code runs |
| CVE-2026-109618 | "RCE via OOM corruption": out-of-memory handling can interrupt PHP while internal request data is only partly initialized, and cleanup may then treat the invalid data as valid |
| CVE-2026-109619 | "RCE via stale global state": internal state owned by a request can survive after its memory is freed, and a later request on the same worker may use it |
| Old versions | PHP 8.1 and older no longer get releases. PHP published minimal source backports for 7.4, 8.0 and 8.1; some distributions provide their own |
| If you cannot update | Interim measures, such as lifting the PHP memory limit, lowering post_max_size, limiting request sizes at the web server or proxy, and disabling session.upload_progress in php.ini or the pool configuration, reduce exposure to specific attack paths but do not make an installation safe. Only the update fixes it |
Because the flaws sit in how PHP handles requests, not in any application, fixes in application code cannot close them, and on mod_php the attack runs before application code is reached at all. That is why the fix has to be in PHP itself.
What was known before the release#
| Official | The PHP security team announced on October 20 a security release for two critical vulnerabilities, both CVSS v4.0 9.2, scheduled for 21 October, 14:00 UTC. It said it might release earlier if details went public or exploitation appeared. Affected and fixed versions will be published with the release |
| Japan | IPA published a pre-alert on October 21 asking organizations to inventory where they use PHP and be ready to apply the fix quickly. It notes that PHP is also built into software products and network devices, and that some sites still run unsupported PHP |
| CVE numbers | CVE-2026-109618 and CVE-2026-109619, according to CERT-EU and researchers. Not yet confirmed by PHP |
| Type | Remote code execution, according to CERT-EU and watchTowr, which says it believes it has reproduced one of them |
| Affected versions | Claims differ: PHP 5 and later (CERT-EU), 5.4 and later (Sansec). Not confirmed by PHP |
| Exploitation | None seen as of October 21 by watchTowr, Huntress, Australia's ASD/ACSC or IPA. Material resembling proof-of-concept code is reported to be circulating |
What is not known. PHP has not said which component is at fault or how an attacker reaches it. GMO Flatt Security, which was not part of the embargo, suspects PHP's session upload progress feature, but revised its advice the same day: switching that feature off may reduce the risk but is not expected to prevent an attack. There is no reliable workaround to rely on before the patch.
Japanese services that paused#
Written on the evening of October 21, before the release. See A country that hit pause for what happened next.
- Codmon (コドモン), used by nurseries, kindergartens and after-school programs to run attendance and communicate with parents, stopped all its services, including the parents' app, on October 21 as a precaution, and expected to resume early on October 22. It said it had found no unauthorized access or data leak.
- Studio, the website builder still dealing with a breach of its cloud environment, suspended its dashboard and editor from 22:00 on October 21, citing the PHP notice. Published websites stay online. It says no damage has been found.
- Sakura Internet, one of Japan's largest hosting providers, stopped some functions in response, according to Nikkei.
- Other system integrators and hosting customers have warned their users of possible short outages around 23:00 while they update.
A country that hit pause#
Added October 22, 2026.
By the evening of October 21, the precautionary pause had become a wave. According to Impress Watch and ITmedia, BASE and Codmon went into maintenance in the afternoon, followed by pixiv, DMM.com, niconico, the card game Shadowverse, Sakura Internet's rental servers and others. Some local governments announced temporary system stops.
Government messages came in step:
- IPA had published its pre-alert that morning.
- The National Cyber Office posted an alert saying that if the patch could not be applied promptly, temporarily stopping websites was "one effective way to reduce risk".
- At about 21:55, Prime Minister Sanae Takaichi posted on X an "urgent request" for operators to check whether their websites use PHP and act that night, repeating that a temporary stop is an effective option, as reported by Nikkei, Jiji Press, the Mainichi Shimbun and others.
Overseas, CERT-EU and the UK's NCSC gave similar advice: if a system cannot be fixed right away, consider taking it offline until it can.
By the next morning, services were coming back. Studio, for example, applied the fix and restored everything at 04:05 on October 22, less than six hours after it stopped, and found no damage. Its notice is also a reminder of what pausing involves: to keep attack traffic away from PHP, it stopped the APIs behind its customers' published sites as well, so contact forms on those sites returned errors overnight, more than its advance notice had said. It has asked customers to tell their visitors to resend.
How Codmon made the call#
Added October 23, 2026.
Codmon, whose service nurseries and after-school programs use for attendance, billing and messages to parents, was among the first Japanese companies to stop. On October 23, its head of product development published a retrospective based on the company's Slack and meeting records. It is one of the most useful public accounts of an emergency decision we have seen from a Japanese company, and we summarize it here.
The decision, October 21 (Japan time)
| Time | What happened |
|---|---|
| 09:01 | An engineer posts PHP's advance notice in Slack |
| 10:32 | The product security team briefs executives. Plan: keep running, update at 23:00 |
| 10:57 | The company's incident process starts. About 200 people join the response channel within minutes |
| 11:37 | Executives agree a fallback: stop at night with advance notice, but stop at once if the release comes early. The CEO and other executives pre-approve that |
| 12:03 | The security team reports that the cause and fix are spreading on social media and in engineering communities, so an attack might work before 23:00. Unofficial mitigations cannot be tested in time |
| 12:37 | Executives decide to stop now, about 30 minutes after the picture changed |
| 13:46–14:49 | Six services stopped, after 22 had been checked for PHP use. First notice to users about 14:00, after the stop |
Codmon lists the three alternatives it rejected, with reasons:
- Stop only some services. The systems are connected; one intrusion could spread to the rest.
- Keep running until parents' pick-up time. An attack could come in the meantime.
- Watch closely and stop if an attack is detected. With this kind of flaw, damage is likely done by the time it is detected.
The night: when the patch is out but the package is not
The plan assumed that patched PHP would be available from the usual sources at 23:00. A risk review at 17:00 found that Codmon gets PHP from four places: the official Docker image, a third-party package repository, Amazon Linux and Ubuntu. Past security fixes had taken hours to days to appear in each. So engineers began building PHP themselves from source as a fallback, and had it passing tests by 19:23.
The fix came out at 22:38, but the usual packages lagged. At 01:49 Codmon decided to restart its main service on its own build, and it came back at 03:22 on October 22, ahead of the 07:00 morning rush. It switched back to the normal packages later that day. One site that had not been covered by the own-build preparation stayed off until the regular package arrived. Twenty-one people worked across the evening, night and early morning shifts.
What Codmon says went wrong
- It had not mapped where each system gets PHP and how long each source takes to ship a fix.
- Some systems with a different setup were left out of the fallback preparation.
- Users got almost no advance notice, and the maintenance screen did not say this was a precaution, so many asked whether Codmon had been hacked.
- It had not worked out in advance what stopping would break for nurseries and parents, such as payments, deadlines and attendance records.
In our view, this account shows what the pre-decided pause we argued for below looks like in practice. The decision was fast because the authority to stop had been settled in the morning, before it was needed. And its most practical lesson for operators is one few advisories mention: knowing that a patch has been released is not the same as having it. We have added it to step 1 of our operator checklist.
Exploitation has begun#
Added October 22, 2026 (evening).
The day after the release, the window closed:
- Attempts are under way. Security NEXT reports that exploitation attempts have been observed and that working proof-of-concept code is public. The cloud security firm Wiz says it demonstrated unauthenticated code execution on WordPress, Drupal and Joomla setups, and that PHP 5.4 and later, including unsupported versions, are affected.
- Not a PHP victim, after all. Valtec, which provides business telephone and other services, stopped parts of its services on October 22 after unauthorized access, first saying the cause was "a cyberattack targeting the PHP vulnerability". It has since corrected that notice: the attackers exploited a vulnerability in its own service, and it had confused the incident with separate work on the PHP flaws. Its later reports say malware was placed on a server on October 20, before the PHP release. (Corrected October 29: we had reported Valtec as a Japanese victim of these flaws.)
- Switched off for good. The travel game World Quest ended its service on October 21, saying it ran on an old system that could not be fixed, according to ITmedia. It is the clearest example yet of the problem we described below: some systems cannot be patched at all.
- CISA in the United States told organizations to patch immediately and, if they could not, to run PHP systems offline until they could. It suggested watching for PHP worker processes starting shells or downloading tools.
Governments abroad paused too. According to ITmedia, citing CNBC and others, the Netherlands took its government portal, its personal data site and the DigiD login service offline as a precaution, and its national cyber security centre stopped its own website. Finland's government IT provider Valtori stopped all its public online services, France's interior ministry paused local government sites, and Canada's minister for AI and digital innovation announced a temporary stop of government sites. Japan was not alone in choosing to pause.
How the details got out. According to ITmedia's account of a statement by the PHP Foundation, the flaws were found during AI-assisted security scanning this year, one of them with signs going back to 2024. The release was originally planned for October 22 and brought forward a day after the existence of the flaws spread on social media. Then, at about 05:00 Japan time on October 21, a security company mistakenly published a video showing a working exploit against several targets. The foundation criticized the company by name. In our view, it is a reminder that coordinated disclosure only works if everyone in the chain holds the line, and that defenders should assume details will leak before the planned date.
What operators should check#
Added October 23, 2026.
This section is for people who run PHP systems, not for those analysing the flaws. It draws on the advisories from JPCERT/CC and IPA published on October 22, and on guidance from Amazon and the researchers who found the flaws.
1. Confirm the fix is really running#
A service that is back online is not necessarily a patched one.
- Check the PHP version actually serving requests on every server, container and worker pool, not just the package installed. Old workers keep running the old code until they are restarted.
- Rebuild container images and check that nothing is still deployed from an old one, including staging, admin and batch servers that face the internet.
- If you use a rental server or hosting service, check that the provider says it has applied the fix, not only that service has resumed.
- Know where your PHP comes from. Codmon found it took PHP from four sources, each with a different delay before a patched package appeared. Map this before the next emergency, and decide whether you can build from source if a package is late.
- PHP inside products: JPCERT/CC and IPA both note that products and Linux distributions that bundle PHP may be affected. Ask each vendor for its own fix.
- PHP 8.1 and older gets no update. See step 6.
2. Look back to October 17, not October 21#
Amazon says its honeypots saw an exploitation attempt on October 17, four days before the flaws were disclosed, and recommends starting investigations from that date. Before searching, check that you still have web server, WAF, PHP and system logs for the whole period from October 17 until the fix went in, and preserve them before routine rotation deletes them.
3. What to look for#
JPCERT/CC's advisory lists signs based on the researchers' information. We have grouped them, with Amazon's and others' additions, by where an operator would look:
| Where | What to look for |
|---|---|
| HTTP responses (web server, proxy or WAF logs that record cookies) | PHPSESSID cookies with unusually long or malformed values. One flaw can leak server memory into this cookie |
| Web server and WAF logs | Suspicious multipart/form-data requests, especially to pages that do not normally accept uploads. Amazon suggests searching for form posts containing PHP_SESSION_UPLOAD_PROGRESS, a lead to investigate, not proof of attack |
| PHP and web server error logs | Memory limit errors and HTTP 500 errors around those requests |
| PHP-FPM, Apache and system logs | PHP workers crashing or restarting often, and the out-of-memory killer at work |
| The server itself | PHP or web server processes starting shells or download tools such as curl and wget, new files in web directories, new scheduled tasks or accounts, and unexpected outbound connections |
Two practical limits apply. Typical access logs and CDN logs do not record request bodies, where much of the attack sits. And because the flaws run below the application, application logs may show little or nothing. Amazon has also published a few attacker IP addresses, but they belong to shared anonymization networks, so it advises investigating matches rather than blocking them. In short, there are no reliable indicators of compromise to match against yet; this is a hunt by behaviour.
4. Finding nothing is not an all-clear#
JPCERT/CC says it plainly: there are several ways to exploit the flaws, a single detection rule may not catch them all, and depending on the attack and the logging, no traces may remain. The researchers add that some attacks can leak memory without running any code on the server, and Wiz notes that leaked memory can hold passwords, tokens, API keys and certificates.
In our view, that changes the question for servers that were exposed and unpatched between October 17 and the fix. The question is not only "were we compromised?" but "what secrets did this server hold?" Where those are valuable, such as database passwords, API keys for payment or cloud services, or session signing keys, rotating them may be cheaper than proving they did not leak. This year's breaches at Studio and Arcadia showed how much damage a single leaked key can do.
5. If you find signs of compromise#
- Preserve logs and evidence first, before restarting, patching over or rebuilding the server. JPCERT/CC and Beazley Security both stress this.
- Isolate the server and work out the scope: what it could reach, and what data and credentials it held.
- Rotate every secret the PHP processes could read.
- If personal data may have leaked through an attack, Japan's privacy law generally requires a report to the Personal Information Protection Commission, even before a leak is confirmed. See our guide to Japan's breach notification rules.
- JPCERT/CC asks organizations to share information about the incident with it.
6. Decide what to do with systems that cannot be fixed#
IPA's advisory goes further than most on this, and it is aimed at managers as much as engineers. In summary:
- Check whether the PHP version is still supported.
- Until it is updated or replaced, put interim measures or access restrictions in place, and if that is not possible, decide whether to block outside access or pause the service.
- Understand what the system still does, and how hard updating it would be. Old systems often lack documents, staff who know them, or a maintenance contract.
- Involve business owners and executives, not only system staff, in deciding whether the people, budget and maintenance needed can be found.
- If they cannot, consider moving to a maintained product or service, cutting features, or retiring the system.
- Plan for users: data migration, and alternatives while things change.
The travel game World Quest, which shut down on October 21 because its old system could not be fixed, is what step 5 looks like in practice.
Our analysis#
A day that showed progress#
In our view, October 21 showed how far Japan's ability to respond has come. Details of the flaws leaked on October 20. By the afternoon of October 21, IPA had told organizations what to prepare, companies were taking their own services offline before anyone had been attacked, the government's cyber office had said plainly that doing so was a sound choice, and by night the Prime Minister was asking the whole country to act. All of that happened before the patch existed.
In our experience, the more common pattern in Japan used to be to wait for a fix, apply it when convenient, and explain an outage only after something had gone wrong. This time, the decision to stop was made in advance, announced publicly and backed from the top. It also matters that the message was not only "patch quickly", but that switching off is acceptable: many organizations hesitate to take a service down without that kind of cover. The test now is whether the services come back patched and checked, and whether the same speed applies to the systems that cannot be patched.
Pausing is a security control#
A flaw that lets anyone on the internet run code on a web server, in software that runs a large share of the web, with details already leaked and a patch hours away, is close to the worst case. The window between the release and mass exploitation of a flaw like this is now measured in hours, and in our recent coverage of AI tools on attackers' servers we saw how quickly a campaign can work through targets once it knows what to look for.
In our view, the services that switched off first made the right call. A planned outage of a few hours, announced in advance, has a known and limited cost. A compromised server holding children's records, or customers' data, does not. It is the same kind of decision the Japanese Red Cross made when it paused its blood donor app after NICT's warning, and the one we argued for in our analysis of app breaches: not running a system is a legitimate security control, not an admission of failure.
Deciding in advance makes it possible#
Pausing is not free. Codmon is how many childcare centers reach parents, and Studio's customers cannot edit their sites while it is down. That is exactly why the decision is best made before a night like this: which services can be switched off, who has the authority to do it, how users will be told, and what keeps working in the meantime. Organizations that have answered those questions can act on a pre-alert. Those that have not tend to wait for the patch, and hope.
The harder part comes after 23:00#
Update, October 22: PHP's advisory confirms the concern. Versions 8.1 and older get no official release, only minimal source backports for 7.4 to 8.1, and the interim settings PHP lists reduce exposure but do not make an installation safe.
The patch will fix supported versions. Sites running old, unsupported PHP, which IPA says are still in use, may get no fix at all, and PHP inside products and appliances will be patched only when each vendor ships an update. For those systems, the choice may be between upgrading, isolating them, or keeping them switched off.
What this means for readers#
- Update now to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or to your distribution's patched package, and restart every PHP worker.
- Prioritize mod_php, where the attack needs no application code.
- If you run PHP 8.1 or older, upgrade to a supported version, use a vendor with backported fixes, or keep the system offline. The interim settings are not a fix.
- Before bringing a paused service back, confirm that every server, container image and worker has the new version.
- Review logs back to October 17 for signs of exploitation, and remember that finding nothing does not prove nothing happened. See What operators should check.
- Consider rotating secrets held by servers that were exposed and unpatched.
- Ask your vendors whether their products embed PHP and when they will ship an update.
Japanese terms at a glance#
| Japanese | Reading | Meaning |
|---|---|---|
| 脆弱性 | zeijakusei | Vulnerability |
| 任意のコード実行 | nin'i no kōdo jikkō | Arbitrary code execution |
| セキュリティリリース | sekyuriti rirīsu | Security release |
| 予防措置 | yobō sochi | Precautionary measure |
| 緊急メンテナンス | kinkyū mentenansu | Emergency maintenance |
| 棚卸し | tanaoroshi | Inventory (of systems) |