Table of Contents
1. Bottom line: fixes are available; identify the PHP actually running and its distributor
Information checked: October 22, 2026, 21:50 JST (12:50 UTC the same day). Four things have changed significantly since the first edition. See the history at the end.
- Attacks began before disclosure. AWS observed an exploitation attempt against its own honeypot system on October 17, four days before disclosure, and reports that the vulnerabilities are now being broadly exploited. AWS also says it is still unclear whether those attempts would have succeeded against real systems. Start investigations from October 17, not from the disclosure date.[21]
- Major Amazon Linux streams are now fixed. Fixed packages are available for php8.2 through php8.5 on Amazon Linux 2023 and for the Php8.2 Extra on Amazon Linux 2. Amazon Linux 2 Core and php8.1 on Amazon Linux 2023 remain “No Fix Planned.”[18][19]
- Japan's government spoke directly to site operators. On the night of October 21, Japan's National Cybersecurity Office said that temporarily taking a website offline is one effective way to reduce risk if the fix cannot be applied quickly. On October 22, IPA and JPCERT/CC published alerts, and preventive outages and maintenance followed across government, universities, e-commerce, finance, games, and other sectors.[29][31][32]
- Interim measures alone do not close the hole. PHP states that mitigations do not make an installation safe. A widely shared Japanese recommendation to disable the session upload-progress feature was also corrected by its originator: on its own, it is not a fix.[1][33]
On October 21, 2026, PHP released fixes for two critical vulnerabilities that can enable unauthenticated remote code execution: CVE-2026-109618 and CVE-2026-109619, both rated CVSS v4.0 9.2, Critical. Researchers call the issues PHP2Shell. The previously announced release time was 23:00 JST; at the time of this review, the releases were available. There is no reason to keep waiting for that announcement.[1][2]
| Upstream branch in use | Release containing these fixes | Where to start |
|---|---|---|
| PHP 8.5 | 8.5.12 | The fixed release in this branch, or the package designated as fixed by your distributor |
| PHP 8.4 | 8.4.27 | The same approach |
| PHP 8.3 | 8.3.36 | The same approach |
| PHP 8.2 | 8.2.35 | Apply this fix and plan for upstream support ending in December 2026 |
| PHP 8.1 and earlier | Outside normal upstream releases | Check distribution support, extended maintenance, and source backports |
This table describes upstream releases. If an OS vendor has backported the fix to an older version, use that vendor's advisory and the complete package version to determine its status. PHP 8.2 upstream security support ends on December 31, 2026. Track the immediate fix separately from the decision about the next supported branch.[3][14]
The recommendation in this article is to work on three things in parallel: restrict exposure, replace the runtime with a maintained fix, and retain evidence that the replacement is running. Systems that cannot upgrade immediately still have options. There is no universal setting that makes an unpatched public deployment safe indefinitely.
Start with seven inventory fields: service name, external entry point, SAPI (the PHP execution interface), web runtime version, OS and distributor, running image, and owner. php -v alone does not establish the state of PHP-FPM or Apache running a different binary. With multiple servers, one representative host is not evidence for the fleet.
2. What happened worldwide and in Japan: an earlier release, attacks before disclosure, and waves of preventive maintenance
PHP sits close to the foundation of the web. According to W3Techs data as of October 22, 69.3% of websites with a known server-side language use PHP, and 39.6% of all websites run on WordPress, which is written in PHP. Among sites using PHP, 26.9% run PHP 7 and 7.7% run PHP 5, both of which no longer receive upstream support. The population that cannot simply install this week's upstream releases is far from small.[34][35]
The component that needs repair is the runtime underneath the application. Updating WordPress, a business application, or its plugins leaves the problem in place when the PHP actually running is old. The path demonstrated against mod_php runs before application code, so application security plugins and maintenance screens are not positioned to stop that input. On shared hosting, the provider replaces PHP; on a VPS or self-managed server, that work belongs to the customer. Confirm which party is responsible under your contract.
How disclosure unfolded: the release moved up by one day
Combining the PHP Foundation's account with AWS's report gives the following timeline, shown in Japan Standard Time.[26][21]
| Date and time (JST) | Event |
|---|---|
| 2024 | An external audit finds early signs of a problem in out-of-memory handling, without a concrete attack path at the time |
| August 11, 2026 | Calif and OpenAI report an unconditional RCE; Wiz reports on August 24 |
| October 17 | An exploitation attempt is observed in AWS's honeypot system, four days before disclosure |
| About 00:00, October 21 | The CVE identifiers circulate online with an incorrect release time and an incorrect score |
| 04:30, October 21 | PHP publishes an advance notice and moves the release from 23:00 on October 22 to 23:00 on October 21 |
| About 05:00, October 21 | A researcher's proof-of-concept video is published by mistake and spreads on social media |
| About 11:00, October 21 | AWS identifies the earliest proof-of-concept exploits |
| 16:41, October 21 | A distributor publishes images containing the fix more than six hours early |
| Night of October 21 | Japan's National Cybersecurity Office and the prime minister urge action on X; PHP releases the fixes around 23:00 |
| October 22 | IPA and JPCERT/CC publish alerts; fixed packages for Amazon Linux and others roll out |
The PHP Foundation says it moved the release by only one day, rather than publishing immediately, because distributors were still packaging the fix. An immediate release would have spread the details before many users had an easy way to update. The episode also shows that when an embargo has many participants, one leak anywhere can collapse the entire schedule.
In the same post, the PHP Foundation acknowledged that months of disagreement over the fix reflected structural problems in decision-making and resourcing. It announced that the security team will move from consensus to majority decisions, described added staff, and asked companies, hosting providers, cloud platforms, distributors, and governments for sustained funding. The incident made visible how much of the web depends on the decisions and resources of a relatively small team.[26]
Exploitation status: many attempts, unconfirmed scale of successful compromise
- AWS: the October 17 attempt came through a commercial anonymization network, and it remains unclear how the actor obtained information during the embargo. On October 21, AWS observed multiple proof-of-concept exploits and attempts that appear to come from multiple actors, and says the vulnerabilities are now broadly exploited. It also says analysis is ongoing as to whether those attempts would have succeeded against real systems.[21]
- watchTowr: reports observing exploitation attempts against both CVEs.[27]
- PHP Foundation: says its team had not identified a functional exploit at the time of release.[26]
- Public agencies: at this checkpoint, neither CVE appears in CISA's Known Exploited Vulnerabilities catalog. The IPA and JPCERT/CC alerts do not state that exploitation has been confirmed.[28][31][32]
In short, multiple observations confirm that the vulnerabilities are being targeted, but no public tally yet shows how many sites have actually been taken over. Absence from KEV is not evidence of safety. Following AWS's advice, reviewing logs back to October 17 is a reasonable baseline.
Japan: direct government appeals and a wave of preventive outages
On the night of October 21, Japan's National Cybersecurity Office posted on X that if the fix cannot be applied quickly, temporarily taking a website offline is one effective way to reduce risk. The prime minister also urged action that night on X. The Ministry of Internal Affairs and Communications asked organizations that operate websites and web systems to act, while noting that ordinary internet users do not need to do anything in particular.[29][30]
On October 22, IPA recommended updating to the fixed releases and, because PHP 8.1 and earlier do not receive these upstream fixes, asked operators to consider moving to supported versions or to fixed products and services. Until then, it advises access restrictions and, where necessary, deciding whether to suspend services temporarily. JPCERT/CC said it has confirmed that PHP is widely used in Japan and that updating is the only remedy for these vulnerabilities.[31][32]
From the night of October 21 into October 22, notices of “emergency maintenance” and “partial service suspension” appeared across government agencies, universities, e-commerce, SaaS, finance, games, transportation, and other sectors. Shared-hosting providers replaced PHP during overnight emergency maintenance. Media also reported long-running services whose operators decided to shut them down because their older systems would be difficult to repair.[36]
When reading these notices, keep three points in mind:
- An outage does not mean damage. Many notices say no unauthorized access or data leak has been confirmed. Most actions were preventive.
- Many notices do not name the cause. One private compilation of Japanese notices found that 21 of 33 explicitly mentioned PHP, while the rest used terms such as “system maintenance.” Overlapping timing alone does not establish PHP2Shell as the cause.[36]
- First reports about causes can change. When discussing a particular outage or incident, wait for the operator's follow-up before drawing conclusions.
Worldwide: distributors, hosting providers, and cloud platforms respond in turn
CERT-EU recommends isolating public systems that cannot be fixed immediately from the network and points to a list maintained by the Dutch National Cyber Security Centre (NCSC-NL) for identifying products that embed PHP.[8]
Linux distributions generally released fixed packages alongside PHP's release, and Ubuntu also delivered fixes for long-supported older releases (Chapter 7). AWS has published fixed Amazon Linux packages, an Elastic Beanstalk platform update, updated Lightsail blueprints, and AWS WAF rules (Chapters 5 and 6). By contrast, PHP said the volunteer-run add-on package repository remirepo would not have same-day updates and advised switching to distribution packages or building from source. Where you normally get PHP determines how fast a fix reaches you.[1][22]
3. What broke:cleanup or a later request uses memory left in an invalid state
Researchers report an affected path reaching back at least to PHP 5.4. This does not mean every older version has identical exploit conditions or paths. Keep old branches in the inventory and check fixes for the specific branch.[7]
The PHP runtime receives a request and parses its input before executing application code. These vulnerabilities center on memory management inside that runtime. The component requiring repair is different from an application query affected by SQL injection.
CVE-2026-109618 concerns interruption and cleanup when memory runs out. An out-of-memory condition can interrupt initialization of internal data, after which shutdown treats incomplete state as valid. PHP's advisory describes validated unauthenticated RCE in ordinary mod_php configurations before application code executes. The fix changes OOM control flow, combining termination at a safe point with process exit if memory pressure becomes more severe.[4]
CVE-2026-109619 concerns references that outlive a request. A request's memory is freed, but a worker retains a reference. A later request handled by that worker may consume it before ordinary initialization clears it, causing a use-after-free. Fatal errors are one route; diagnostics during shutdown can also repopulate state that should have been cleared.[5]
The worker survives while request-owned memory changes. The obsolete key is a metaphor for a later request using a reference whose lifetime has ended.
Correct application code can still run on an affected lower layer. Researchers demonstrated RCE against several applications, including WordPress, and separately reported process-memory disclosure without first achieving RCE. These are research demonstrations, not reports that every deployment of those products has been compromised.[6]
A CVSS score of 9.2 establishes urgency, not an attack success rate. The official vector also records high attack complexity and the presence of attack requirements. Builds, extensions, input handling, and worker behavior affect the conditions. Failure of one published reproduction in your environment therefore does not prove the runtime is unaffected.
4. Which systems are exposed: prioritize by execution interface and reachable paths
PHP asks operators to update all installations serving web requests, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP, and LiteSpeed. An unpatched, internet-facing mod_php deployment deserves particular urgency. Input parsing can run before an application login check, so application authentication alone is not a boundary for that path.[1]
| Environment to inspect | Assessment for this incident | Operational response |
|---|---|---|
| Public Apache with mod_php | Exploitation before application execution has been demonstrated | Emergency update; restrict access before PHP if an update cannot be deployed immediately |
| nginx or another frontend with PHP-FPM | The child exits on some startup failures, but other paths after successful startup remain | Update rather than declaring FPM safe; inventory application behavior, configuration, and extensions |
| Other web-facing SAPIs | Distinguish demonstrated paths from the broader affected scope | Reconcile distributor guidance with PHP's advisories and update |
| Products and containers containing PHP | Updating a named product or host OS alone does not prove that embedded PHP is fixed | Inspect bundled binaries, images, and vendor-fixed releases |
| CLI-only batch workloads | Do not directly transfer the published HTTP attack model | Separately inspect web listeners, external inputs, and maintenance status |
The FPM distinction matters. A worker exits when request startup fails, preventing the identical mod_php startup sequence. However, a validated path leaves state behind during application processing after normal startup and consumes it in a subsequent request. Blocking one path and repairing the runtime are different conclusions.[5][7]
Prioritize by external reachability, similarity to validated attack conditions, and the data and privileges available after compromise. Internal services still need attention when reachable from VPN users, compromised workstations, or other services. Removing public access is a strong interim measure, but record the internal paths that remain. CERT-EU also recommends considering isolation from public networks where immediate remediation is not feasible.[8]
The useful operational comparison with Log4Shell is the difficulty of locating embedded dependencies and getting distributor fixes onto every running instance. There is no need to equate the attack mechanisms or observed damage. This article does not establish a worldwide compromise count. CERT-EU warns that circulating initial PoCs increase the likelihood of exploitation, and AWS has reported exploitation attempts that began before disclosure (Chapter 2). Read both separately from a confirmed compromise count. A pre-release notice without confirmed exploitation is not evidence that attacks are absent now.[8][21]
5. On AWS: separate responsibility for PHP from the privileges exposed after compromise
The following is a fictional architecture for discussion, not a description of a particular company.
Internet → CloudFront / AWS WAF → ALB → PHP-FPM / mod_php
├─ DB credentials → RDS
└─ Runtime role → S3 and other services
Guest operating systems and applications on EC2 fall within the customer's management responsibilities. Protection of cloud infrastructure does not replace patching the PHP runtime you deploy.[9]
- EC2 and Auto Scaling: update running instances and the AMI, launch template, and bootstrap process. Verify that scaling out cannot restore the old runtime.
- Containers on ECS or EKS: rebuild the image containing PHP and deploy an identified digest. Updating packages on the EC2 host does not update a container's contents. Include services, Jobs, CronJobs, and standby deployments.
- Fargate: reduced infrastructure administration does not remove the need to update PHP in the application image. Task isolation does not guarantee protection of data inside the compromised task.
- Elastic Beanstalk and hosted products: check the provider's fixed platform or product version and apply it to the environment. A separately installed PHP runtime may require separate action.
- Lambda custom runtimes and containers: if PHP is bundled, inspect its provider, layer, and image. Do not assume identical attack conditions across all Lambda functions without checking the execution model.
RCE need not provide root privileges to cause serious business damage. Configuration, environment variables, and database credentials readable by the PHP worker may become accessible after compromise. Permissions assigned to the application may also permit access to S3 or other AWS resources. This is a general post-RCE threat model, not a claim that those outcomes have been observed in this incident.
On ECS, distinguish the application's task role from the task execution role used for activities such as pulling images. Scope the former to required APIs and resources. For EC2-backed containers, inspect access boundaries around neighboring tasks and instance metadata. AWS explicitly states that containers are not security boundaries, while Fargate provides a task-level isolation boundary.[10]
Requiring IMDSv2 is valuable, but it is not a universal barrier against an attacker who can already execute code on the host. IMDSv2 issues a token for subsequent metadata requests. The threat-model inference here is that code with the necessary reachability and permissions may perform that operation too. Combine it with blocking unused metadata paths, least privilege, database permission separation, and egress restrictions.[11]
Check Amazon Linux by package stream
At the 21:50 JST checkpoint on October 22, both AWS CVE records show the following statuses. Every stream marked “Pending Fix” that morning is now “Fixed.” These apply to the specified Amazon Linux packages, not every PHP installation hosted on AWS.[18][19]
| Distribution channel / package | Status for both CVEs | Advisory |
|---|---|---|
| Amazon Linux 2 Core / php | No Fix Planned | None |
| Amazon Linux 2 Php8.2 Extra / php | Fixed | ALAS2PHP8.2-2026-015 |
| Amazon Linux 2023 / php8.1 | No Fix Planned | None |
| Amazon Linux 2023 / php8.2, 8.3, 8.4, 8.5 | Fixed | ALAS2023-2026-3301 to 3304, in stream order |
| Amazon Linux 2027 Preview / php8.5 | Fixed | ALAS2027-2026-243 |
Determine fixed status from the complete RPM version listed in the advisory. For example, the fixed php8.4 package on Amazon Linux 2023 is 8.4.27-1.amzn2023.0.1, and the fixed Php8.2 Extra package on Amazon Linux 2 is 8.2.35-1.amzn2.0.1. AWS's bulletin, last updated at 20:30 PDT on October 21, said fixed packages were available first in commercial Regions, with other Regions targeted for October 22. After installing the packages, verify that Apache or PHP-FPM has restarted.[24][25][22]
For streams marked “No Fix Planned,” combine exposure restrictions with a maintained distribution path or a verifiable backport rather than waiting indefinitely. AWS rates these 8.1 under CVSS v3.1 and NVD rates them 9.8 under v3.1, while upstream's 9.2 uses v4.0; the scoring systems and assumptions differ. The different scores are not a reason to postpone action.
AWS services beyond Amazon Linux
AWS Security Bulletin 2026-143-AWS gives the following service-specific guidance.[22]
- Elastic Beanstalk: PHP platform v4.13.12, with measures for both CVEs, was released on October 21, and a follow-up release incorporating the upstream fix was targeted for October 22. Environments using managed platform updates receive it in their next maintenance window; others need to upgrade their platform version.
- Lightsail: running instances cannot be updated in place. Create new instances from the updated blueprints and migrate applications.
- AWS WAF: a new default version of the PHP managed rule group is available (see Chapter 6).
Services not listed in the bulletin, and configurations where customers installed PHP themselves, are outside that list and need their own checks.
6. Defense while updating: restrict entry first and document configuration tradeoffs
The service owner and security team should decide whether to remain online using data sensitivity, outage impact, and the expected repair path. Where a critical service cannot obtain a fix or sufficiently restrict access, this article recommends switching to a static notice that does not invoke PHP. An application-level maintenance page may be too late: PHP can parse the request before reaching that page.
IP allowlists, VPN access, and authentication at an upstream proxy narrow the set of parties reaching PHP. Restricting CloudFront alone leaves a gap if an ALB address or alternative hostname remains directly reachable. Check origin paths, IPv6, alternative ports, and forgotten environments.
Protecting an entrance requires closing bypasses as well. Compare the architecture diagram with the paths that actually reach the application.
An AWS WAF inspection limit is not a request rejection limit
AWS WAF can inspect a fixed 8 KB of a request body on ALB. For CloudFront, the default is 16 KB and the maximum is 64 KB. Content outside the inspection window is not automatically discarded before reaching PHP. When the request is allowed, it is forwarded in full.[12][13]
Oversize handling offers Continue, Match, and No match. To reject oversized requests, review the rule action, oversize behavior, earlier Allow rules, and exceptions together. For example, Match with a Block action rejects an oversized component, but may also block legitimate uploads. Identify affected routes and validate business impact with real requests. This is not a complete PHP2Shell-specific protection rule.
On October 21, AWS published interim rules for PHP2Shell. Version 2.3 of the PHP managed rule group is now the default and covers CVE-2026-109619. For CVE-2026-109618, the body-size rule in the Core rule set (SizeRestrictions_BODY, which flags bodies over 8 KB by default) can be used. AWS also provides an example custom rule that blocks POST requests containing the string used for session upload-progress tracking. The recommended procedure is to start in Count mode, review the effect, and then switch to Block.[22][23]
In the same guidance, AWS notes that WAF cannot see PHP worker memory or server configuration, does not parse headers inside individual multipart parts, and cannot reach most of CVE-2026-109619. It states that patching is the only complete fix. Treat WAF as a way to buy time until the update is deployed.[23]
PHP's interim advice is not a one-setting fix
Current official guidance includes the following. Read the latest linked advisories when implementing it, and apply changes to and restart every worker. PHP states that these mitigations do not make an installation safe.[1][4][5]
- OOM paths: administratively enforcing
memory_limit=-1reduces the known path relying on PHP's finite limit, but underlying allocation failures remain possible. Removing the PHP limit increases availability risk. Do not deploy it without input limits, monitoring, and appropriate container or cgroup boundaries. SubstitutingRLIMIT_ASorRLIMIT_DATAcan itself cause the vulnerable allocation failure. - Session paths: set
session.upload_progress.enabled=0in server configuration effective before request parsing. Applicationini_set()and FPM.user.iniare too late. This addresses confirmed session paths, not every variant. Before the fixed releases, a recommendation to use this setting as an interim measure spread widely in Japan; its originator corrected it the same day, saying it is not a complete measure on its own.[33] - PHP 8.5:
fatal_error_backtraces=0reduces the confirmed backtrace path, without repairing all paths. - Inputs and diagnostics: restrict bodies, multipart requests, headers, and nesting at the frontend, and repair invalid per-request configuration. Merely hiding errors does not prevent the problem.
Do not rely exclusively on a small post_max_size; account for differences between declared lengths and the data actually decoded. Block multipart requests upstream if they are unnecessary, after checking whether API clients or integrations use them implicitly. If restrictions break a business function, create a narrowly scoped alternative with defined users, routes, and duration rather than opening an unlimited exception.
7. If old PHP cannot be upgraded: prefer a maintained distributor fix
The hard part of legacy remediation is often the evidence that behavior remains correct, rather than the number of changed lines. Old frameworks, removed APIs, extensions, database drivers, implicit conversions, and edge cases in reports or batch processing make migration difficult. Avoid forcing emergency remediation and broad technical-debt reduction into the same release.
First choice: fixed packages from the distribution or maintenance provider already in use. Backporting applies a newer fix to an older branch and can address a particular flaw while preserving compatibility. Confirm the CVEs, architecture, extensions, distribution channel, and scope of the support agreement.[14]
For this incident, Ubuntu's USN-8948-1 lists 8.1.2-1ubuntu2.28 as a fixed PHP 8.1 package for Ubuntu 22.04 LTS. This is a concrete example of a distributor supplying a fix after normal upstream support for 8.1 has ended. Do not apply that version to another OS, or classify it as unpatched by checking only the leading 8.1.2.[15]
Canonical also provides 7.4.3-4ubuntu2.29+esm5 for PHP 7.4 on Ubuntu 20.04. Fixes for 20.04 and older are delivered through Ubuntu Pro’s ESM service, including PHP 7.2 on 18.04 (7.2.24-0ubuntu0.18.04.17+esm14), PHP 7.0 on 16.04 (7.0.33-0ubuntu0.16.04.16+esm22), and PHP 5.5 on 14.04 (5.5.9+dfsg-1ubuntu4.29+esm18). Check the OS maintenance entitlement, enabled repositories, and release before assuming an old PHP has no patch. Automatic package installation still requires verification that Apache or PHP workers have restarted.[20]
When IPA and JPCERT/CC say that PHP 8.1 and earlier do not receive these fixes, they are describing upstream PHP releases. If your OS is still maintained, the distributor may deliver a fix while keeping the same base version number. Check the OS advisory to see which case applies.[31][32]
Second choice: a trustworthy extended-maintenance service. A contract alone is insufficient evidence. Ask whether both CVEs are covered, when the update is available, how artifacts are signed, what has been tested, and who owns subsequent remediation. A maintenance agreement is not an unconditional promise of every possible future fix.
Third choice: a controlled source backport. PHP has also linked minimal source backports for PHP 7.4, 8.0, and 8.1. This does not restart normal support for those branches. Consuming a maintained vendor package and assuming responsibility for building, testing, and distributing a source patch are different operational commitments.[1]
A backport repairs a problem while preserving an existing structure. Compatibility at the joins and verification of the result determine its quality.
The following are this article's proposed minimum conditions for maintaining your own fix:
- Cause and scope: identify applicable paths in the target version and map official commits, follow-up fixes, and tests. Blocking one reproduction is not sufficient.
- Reproducible builds: retain source, patches, compiler, configuration, extensions, dependencies, and artifact hashes. Ensure distributed artifacts can be verified through your controlled distribution process.
- Two kinds of testing: separate security regression tests that fail before the fix and pass afterward in isolation from compatibility tests protecting business inputs and outputs. Exercise the production SAPI, OPcache, extensions, and concurrent requests.
- Ownership and deadline: assign reviewers, responsibility for the next CVE, the owner accepting continued exposure, and a deadline for leaving the old branch.
If these conditions cannot be met, isolation, disabling affected functions, or an alternative business process is preferable to exposing an improvised build. Even a successful custom patch does not establish the safety of the entire unsupported runtime. Keep emergency-fix completion and migration completion in separate tickets.
8. Finish deployment: verify every running instance, not just updated files
Installing a package and running the fixed service are distinct milestones. These are examples of inspection commands to adapt to the environment, not a bulk-upgrade script.
# Information about this CLI invocation; record separately from web evidence php -v php --ini # Debian / Ubuntu: complete installed package versions # Compare against the distributor advisory covering these CVEs dpkg-query -W 'php*' 'libapache2-mod-php*' # RPM-based example rpm -qa 'php*'
For web execution, use existing administrative diagnostics or a temporary restricted endpoint to obtain the actual PHP_VERSION, PHP_SAPI, loaded configuration, and build identity. Do not leave a public phpinfo() page behind. For distribution packages, the package revision is needed in addition to the web runtime's version string.
A recommended deployment sequence is:
- Define scope: inventory production, administrative interfaces, alternative domains, batch jobs, and standby systems. Shut down unused environments.
- Validate the replacement: record vendor guidance, signatures, and image digests. Test service-critical flows such as login, payments, persistence, uploads, sessions, and asynchronous processing.
- Roll out incrementally: begin with a canary or a subset of instances and watch error rates, latency, memory, and worker restarts. Base acceptable thresholds on the service's normal behavior.
- Replace running processes: appropriately restart or replace FPM and Apache, checking that old workers are gone. A resident process can retain old code even after files have changed.
- Test recreation: verify that newly launched instances and tasks are fixed too. Maintain a patched rollback target. If returning to an unpatched target is unavoidable, close public access first.
- Keep evidence: per asset, record the complete version, distributor, digest, verification time, verifier, and remaining exceptions with deadlines.
If indicators of compromise emerge during the update, move from ordinary patching to incident response. Preserve logs and necessary evidence; isolate, investigate, and rebuild from clean artifacts. Revoke or rotate secrets and invalidate sessions according to the assessed scope. An update does not undo stolen information or remove already-installed malicious code.
Wiz identifies unusual multipart requests, memory-limit errors, repeated HTTP 500 responses, abnormal session cookies, and unexplained worker churn as investigative leads. None alone proves an attack. Some paths run before application logging, so correlate frontend access logs with OS, container, and CloudTrail records.[6]
AWS recommends starting investigations no later than October 17 rather than the disclosure date, searching form POST bodies for the string PHP_SESSION_UPLOAD_PROGRESS, and checking web servers for unexpected process execution or file changes. The source IP addresses AWS published belong to shared anonymization infrastructure, so use them as investigative leads when they appear in logs rather than as a blanket blocklist.[21]
CloudTrail does not record arbitrary code execution inside PHP itself. Use it for the AWS API activity actually being logged, and check whether needed events, including relevant S3 data events, were enabled beforehand. The absence of an alert is not equivalent to evidence that no compromise occurred.[17]
9. How AI helped find the bugs: test hypotheses and generalize failure patterns
AI involvement has been publicly documented. Wiz reports using Wiz Atlas, Gemini 4 Argon, and GPT-5.6 Sol. OpenAI says Calif identified a critical flaw using GPT-5.6 Sol and that Wiz independently discovered and reported the vulnerabilities. This was not a claim that a single AI autonomously performed all the work.[6][16]
According to the PHP Foundation's account, signs of the underlying problem had already surfaced in a 2024 external audit, though without a concrete attack path. Calif and OpenAI reported an unconditional RCE with the same root cause on August 11, and public disclosure followed about two and a half months later. The Foundation acknowledged its failure to settle on a fix as its own problem. It says AI tools help validate and triage reports, but people make every decision and work on every patch. This article's view is that as AI speeds up discovery, the capacity to decide on fixes and deliver them safely increasingly sets the overall pace.[26]
A revealing part of Calif's technical account is how the researcher used PHP's vulnerability history to ask where interruption could become dangerous. The model traced source code and examined the ordering of publishing state, performing fallible work, and completing initialization. The team then generalized the discovered structure into a SKILL.md and searched other locations for the pattern.[7]
The valuable step is testing a hypothesis and using the reason it failed to narrow the next search, rather than accumulating plausible warnings.
For defenders, this suggests the following loop. It is a generalized operational proposal informed by the published research:
- Read: connect inputs, memory ownership, initialization, cleanup, and paths skipped by errors. Do not classify risk from a function name alone.
- Form a hypothesis: specify who consumes incomplete state if an operation fails halfway through.
- Test in isolation: use an authorized local environment, a minimal reproduction, a debugger, sanitizers, and tests to compare the claim with actual failures.
- Search for relatives: investigate the same ownership and lifetime pattern in other versions and extensions.
- Challenge the fix: after the original reproduction stops failing, test neighboring variants and normal behavior. Assign a reviewer the task of trying to disprove completeness.
AI can assist broad code exploration and repeated experimentation. Suspicious source, a crash, information disclosure, and RCE are nevertheless different milestones. Keep evidence for each instead of jumping to the final outcome because a model's explanation sounds convincing. A research success does not establish a universal percentage reduction in investigation time or cost.
For legacy maintenance, divide AI-assisted work by deliverable: advisory synthesis, old-version comparison, build definitions, regression-test proposals, and deployment-inventory reconciliation. Each task should retain source versions, reasoning, and unresolved questions so the next operator can recover context. People review the evidence and decide whether to adopt a patch, manipulate secrets, or switch production traffic.
10. Prepare for the next emergency: response speed depends on information kept beforehand
When the next runtime issue appears, reduce the chance that the response begins by asking how many installations exist. Five practices help:
Assets and dependencies. Connect services to their SAPI, OS packages, image digests, SBOMs, owners, and support deadlines. An SBOM alone cannot show which old images are still publicly exposed. Reconcile it with running inventory.
A route to fixes. Define upstream and distributor subscriptions, emergency contacts, extended-maintenance scope, and signature-verification procedures. When a CVE arrives, incorporate vendor fix status rather than relying exclusively on upstream version comparisons.
A way to stop. Prepare a PHP-independent notice, access restrictions, emergency administrative access, and alternative business processes. Every exception permitting continued operation needs an owner, reason, residual risk, deadline, and reassessment trigger. In this incident, Japan's government named temporary suspension as one effective measure, and many organizations decided overnight to go offline. Decide in advance who makes that call and on what criteria.
A way to recover and verify. Exercise tests for critical business flows, patched rollback targets, secret rotation, and backup restoration. Include a test that recreating the workload cannot silently bring back an unpatched runtime.
Measurements. Track time from notification to asset identification, identification to exposure restriction, and fix availability to verification of the entire running fleet. Count unresolved exceptions as well as machines receiving a package.
A minimum completion condition is that the affected assets are known, fixed artifacts are running across scope, recreation preserves the fix, and exceptions have deadlines. Suspected compromises require their own investigation and recovery. Turn the emergency update into an operational record that can be reused next time.
Update history and items to revisit
- October 22, 2026, first edition (checked October 21 at 23:55 JST): incorporates official fixed releases, SAPI conditions, interim measures, legacy backports, Ubuntu's package example, AWS operations, and AI-assisted discovery.
- October 22, 2026, 07:10 JST update: added both Amazon Linux CVE records by package stream, Ubuntu 20.04 / PHP 7.4 ESM fixes, and CERT-EU v1.1’s warning about circulating PoCs; rechecked upstream’s four fixed releases and interim measures.
- October 22, 2026, 21:50 JST update: added Chapter 2, “What happened worldwide and in Japan” (PHP's scale of use, the earlier release and its background, AWS's observation of exploitation attempts before disclosure, absence from CISA KEV, statements by Japan's National Cybersecurity Office, IPA, and JPCERT/CC, preventive outages in Japan and abroad and how to read them, and the PHP Foundation's review). Updated the Amazon Linux table to “Fixed” with advisories and RPM versions, and added Elastic Beanstalk, Lightsail, and AWS WAF guidance, the correction to the session-feature workaround, older Ubuntu ESM versions, and the investigation start date.
- Next checks: corrections and follow-up fixes in PHP advisories; any addition to CISA KEV; public-agency tallies of actual compromises; OS, hosting, and image-distributor updates and regressions; Elastic Beanstalk's follow-up release; WAF-provider coverage and bypass conditions; changes to legacy source backports.
- Unresolved at this checkpoint: the scale of successful compromise among the observed attempts, exploitability of individual customer environments, the relationship between specific outages in Japan and these vulnerabilities, and fix availability in distribution channels not individually checked here. This article does not classify all such channels as either unavailable or safe.
This article is a technical explanation based on public sources, using generalized architectures. It is not a report of reproducing attacks or measuring defenses in individual production environments. Reconcile current provider guidance with your own validation before making changes.
References
- [1]PHP, Security advisory: Critical remote code execution vulnerabilities, update now, and release announcements, October 21, 2026. https://www.php.net/archive/2026.php#2026-10-21-5 ↩
- [2]IPA, advance notice of the PHP security release, October 21, 2026. https://www.ipa.go.jp/security/security-alert/2026/pre-alert20261021.html ↩
- [3]PHP Supported Versions. https://www.php.net/supported-versions.php ↩
- [4]PHP GHSA-w8hw-w9fx-j79w / CVE-2026-109618. https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w ↩
- [5]PHP GHSA-6wmf-4rv5-p3rp / CVE-2026-109619. https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp ↩
- [6]Wiz Research, PHP2Shell, October 21, 2026: AI involvement, research demonstrations, and investigative leads. https://www.wiz.io/blog/php2shell-php-rce ↩
- [7]Calif, php2shell: A tale of two PHP remote vulnerabilities, October 21, 2026. https://calif.io/php2shell/ ↩
- [8]CERT-EU Security Advisory 2026-018. Its pre-release information is used as advance guidance, not a current release-status statement. https://cert.europa.eu/publications/security-advisories/2026-018/ ↩
- [10]AWS Amazon ECS task IAM role. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html ↩
- [11]AWS Use the Instance Metadata Service to access instance metadata. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html ↩
- [12]AWS Considerations for managing body inspection in AWS WAF. https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-setting-body-inspection-limit.html ↩
- [13]AWS Oversize web request components in AWS WAF. https://docs.aws.amazon.com/waf/latest/developerguide/waf-oversize-request-components.html ↩
- [14]Red Hat, What is backporting and how does it affect Red Hat Enterprise Linux? https://access.redhat.com/solutions/57665 ↩
- [15]Ubuntu USN-8948-1, October 21, 2026. Match the complete package version to the Ubuntu release. https://ubuntu.com/security/notices/USN-8948-1 ↩
- [16]OpenAI, Patch the Planet: global response coordination as agents uncover critical vulnerabilities, October 21, 2026. https://openai.com/index/coordinated-disclosure-of-critical-vulnerabilities/ ↩
- [17]AWS Logging data events with CloudTrail. https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html ↩
- [18]AWS Amazon Linux CVE-2026-109618 (checked October 22, 2026, 21:50 JST). https://explore.alas.aws.amazon.com/CVE-2026-109618.html ↩
- [19]AWS Amazon Linux CVE-2026-109619 (checked October 22, 2026, 21:50 JST). https://explore.alas.aws.amazon.com/CVE-2026-109619.html ↩
- [20]Canonical, php2shell vulnerability fixes available, October 21, 2026. https://ubuntu.com/blog/php2shell-vulnerability-fixes-available ↩
- [21]AWS Security Blog, Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot, October 21, 2026. https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/ ↩
- [22]AWS Security Bulletin 2026-143-AWS (updated October 21, 2026, 20:30 PDT; checked October 22, 21:50 JST). https://aws.amazon.com/security/security-bulletins/2026-143-aws/ ↩
- [23]AWS Security Blog, Using AWS WAF to apply mitigations for PHP2Shell RCE vulnerabilities (CVE-2026-109618 and CVE-2026-109619), October 21, 2026. https://aws.amazon.com/blogs/security/using-aws-waf-to-apply-mitigations-for-php2shell-rce-vulnerabilities-cve-2026-109618-and-cve-2026-109619/ ↩
- [24]AWS ALAS2023-2026-3303 (Amazon Linux 2023 php8.4, published October 21, 2026, PDT). php8.2, 8.3, and 8.5 are covered by ALAS2023-2026-3301, 3302, and 3304. https://alas.aws.amazon.com/AL2023/ALAS2023-2026-3303.html ↩
- [25]AWS ALAS2PHP8.2-2026-015 (Amazon Linux 2 Php8.2 Extra, October 22, 2026). https://alas.aws.amazon.com/AL2/ALAS2PHP8.2-2026-015.html ↩
- [26]The PHP Foundation, Today's PHP security release and how we're strengthening PHP security, October 21, 2026: timeline, leaks, assessment at release, and process changes. https://thephp.foundation/blog/2026/10/21/todays-php-security-release-and-how-were-strengthening-php-security/ ↩
- [27]watchTowr, PHP2Shell: PHP Remote Code Execution Exploited, October 21, 2026. https://watchtowr.com/intelligence/php-remote-code-execution-php2shell/ ↩
- [28]CISA Known Exploited Vulnerabilities Catalog (catalog version 2026.10.21, checked October 22, 2026, 21:50 JST). https://www.cisa.gov/known-exploited-vulnerabilities-catalog ↩
- [29]Denfaminicogamer report on posts on X by Japan's National Cybersecurity Office and the prime minister, October 21, 2026 (Japanese). https://news.denfaminicogamer.jp/news/2610213j ↩
- [30]Ministry of Internal Affairs and Communications, post on X, October 22, 2026 (Japanese). https://x.com/MIC_JAPAN/status/2113092566455652686 ↩
- [31]IPA, PHP vulnerability countermeasures (CVE-2026-109618, CVE-2026-109619: PHP2shell), October 22, 2026 (Japanese). https://www.ipa.go.jp/security/security-alert/2026/alert20261022.html ↩
- [32]JPCERT/CC, Alert on multiple vulnerabilities in PHP (CVE-2026-109618, CVE-2026-109619), October 22, 2026 (Japanese). https://www.jpcert.or.jp/at/2026/at260033.html ↩
- [33]ITmedia NEWS report on interim measures proposed by GMO Flatt Security, October 21, 2026, updated at 15:00 JST the same day to reflect the correction (Japanese). https://www.itmedia.co.jp/news/article/2610/21/2000002462/ ↩
- [34]W3Techs, Usage statistics of PHP for websites, October 22, 2026. https://w3techs.com/technologies/details/pl-php ↩
- [35]W3Techs, Usage statistics of WordPress, October 22, 2026. https://w3techs.com/technologies/details/cm-wordpress ↩
- [36]Web Security Assessment Center, list of Japanese services suspended or under maintenance due to the PHP vulnerability (updated October 22, 2026, 21:15 JST; a private compilation of public notices, Japanese). https://websec-center.com/blog/kokunai-kigyou-taiou/ ↩
NOVEL SERIES VOL.1
The World Became Slightly Farther Away
The world may not change, but distance can.
A story about a man who cannot treat promises lightly, and the people he meets.The sequel, Clouded Glass, is out too. Start here.
View on Amazon
Jijoden.com
Your life is worth writing.
There is a truer self you can tell only to AI.Gather fragments of memory into a single story.
Take a LookRelated Articles
Why Personal Data Breaches Keep Happening — Japan’s Incidents and What Businesses and Individuals Should Check
As of October 21, 2026: official disclosures from Times Car, Lawson, Furusato Choice and others, with practical guidance on AI-related threats, reporting, password hashes, MFA, AWS monitoring and personal responses.
Designing Web APIs on AWS in 2026: A Practical Architecture Guide to Auth, Performance, Security, and Cost
A deeply researched guide to designing Web APIs on AWS in 2026, covering internal, B2B, B2C, and agentic workloads; API Gateway, Lambda, Fargate, OIDC, RDS Proxy, asynchronous processing, 10,000-user scale, cost, and multi-cloud portability.
Amazon Titan Explained: Strengths and Use Cases (2026 Edition)
A guide to Amazon Titan models on Amazon Bedrock, covering the overview, competitive comparison, and practical use cases. As of October 2026 only the Titan embedding models remain on Bedrock, and text generation has moved to Amazon Nova 2 Lite and others; this article explains the current status and how to choose.
What is OIDC? How is it Different? Why is it "Amazing"? (Complete Guide with AWS×GitHub Examples)
Learn OIDC (OpenID Connect) from the ground up. Understand the differences from OAuth2.0 and SAML, with practical examples of AWS and GitHub implementations.
Who Needs to Reach Your Login Screen? Designing Apps People Can Trust
An employee course and a public shop reveal two different access problems. Follow a request from device to record and see what trustworthy software can promise.
From the Pocho Lab
