RHEMS JapanJA

PHP2Shell asked whether you can actually ship patches

Using the response to PHP2Shell as the subject, this article lays out from an operations standpoint the structure needed to identify affected systems, verify them, update them, and keep records.

On October 20, 2026, two vulnerabilities that allow unauthenticated remote code execution (RCE) were disclosed in the PHP language itself. Together they are called PHP2Shell. The CVSS v4.0 severity is 9.2. A fixed release appeared the next day, and many services in Japan went into emergency maintenance.

Responding to a vulnerability requires a structure that can identify affected systems, verify them, update them, and confirm behavior. This article considers that operation.

What PHP2Shell was

The two are CVE-2026-109618 and CVE-2026-109619. Both trace back to PHP's internal memory management and error handling.

CVE-2026-109618 is a problem in the cleanup that follows memory exhaustion (OOM). If a memory allocation fails partway through a request, processing is interrupted before internal data finishes initializing. If that data is then treated as valid during shutdown, it can lead to memory corruption. CVE-2026-109619 is a problem where internal state persists across requests. A reference to freed memory remains in the worker process and is used on the next request, producing a use-after-free.

What makes it difficult is the breadth of impact. PHP is said to be used by about 69% of websites whose server-side language is known. Affected runtimes are PHP-FPM, mod_php, and php-cgi, and Apache's mod_php was rated as especially dangerous. A method has been demonstrated that succeeds without authentication, before application code runs. However carefully the application is built, it can be broken in front of that layer. Affected versions run from PHP 5.4 through 8.5. Some of the issues have existed since PHP 5.4 in 2012.

The fixed releases published on October 21, 2026 are PHP 8.2.35, 8.3.36, 8.4.27, and 8.5.12. PHP 7.4, 8.0, and 8.1 are already past official support, and only limited source code patches were provided. No official update was issued.

Three things that made the response hard

1. The disclosure date moved up

Originally, the fixes and details were due to be published on October 22. But on the 20th the existence of the vulnerability and its CVE identifiers spread through Hacker News and elsewhere, and a proof-of-concept video was mistakenly published and circulated. The fixes were moved up to the 21st.
A plan built around being set for the 22nd does not hold at that point. You need a state in which you can move whenever disclosure happens, rather than assuming a schedule.

2. Mitigations only buy time

For cases where an update could not happen immediately, the mitigations offered were lifting memory usage limits, limiting request size, and disabling the file upload progress feature. These close only some of the confirmed attack paths. It was stated plainly that updating to the fixed release is required to eliminate the vulnerability itself. Plugging the gap for now with a product or a setting has limits.

3. One update was not the end

On October 23, a separate vulnerability in the session upload progress feature (CVE-2026-115560) was disclosed. It was not resolved by the October 21 fixes. The workaround is to set session.upload_progress.enabled = 0. In other words, after the first response you had to go back, re-examine the scope of impact, and make another change.

Preconditions for moving the update

To move an update forward, the following conditions need to be in place.

  • You can state immediately which system runs which PHP version (you have a register)
  • Most systems can be replaced with the same procedure (build and deploy are automated)
  • After replacement, you can revert if something goes wrong (you can roll back)

Conversely, the exceptions never reach zero. If even one system is not containerized, it becomes individual manual work. The one machine missing from the register is the most dangerous. In a situation like this one, where all of it is demanded today, that one machine slows the whole decision.

Does a security product prevent this

An event in the same period faced this question directly. GMO Internet Group made IERAE Security a subsidiary in January 2022 and holds security functions such as vulnerability assessment and a SOC inside the group. Even so, in October 2026 unauthorized access to group services left 26,739 potentially affected servers and involved the account information of more than 70 securities and FX firms, and the attacker made a financial demand. It was reported that the president said in a blog post that engineers inside the company had pointed out issues that should have been fixed beforehand.

The details are not visible from outside, and this is not an assessment of any particular company. But the structure shows here: owning a security company inside the group is not the same as being protected yourself. Products and organizations do not help if operations cannot keep up.

Products like a WAF are tools for buying time until an update. Here too, companies rushed to apply protection, but the fundamental fix was a version update. Use the time you bought to apply the patch. If you cannot apply it, buying time means nothing.

The substance of the countermeasure is operations

Security measures properly come down to two things.

  • Build systems that are easy to defend — reduce the attack surface, do not keep old runtimes around, narrow permissions, ship small changes
  • Apply patches promptly when a vulnerability appears — register, impact investigation, verification, application, records

And patching is not enough on the application alone or on the infrastructure alone. Updating application dependencies and updating the OS, middleware, and base images both need to sit on the same operations cycle. If one side stops, that is where the hole opens.

This is probably where PHP2Shell separated companies. Not what you had installed, but how fast, how completely, and how reversibly you could apply the patch. That is what the event tested.

Security is not the adoption of a product. It is running operations that can keep pace with change.

How RHEMS Japan can help

RHEMS Japan helps from the point of building this operations cycle. Inventory to surface the targets, investigation of the scope of impact, verification before application, and records afterward. We turn this sequence into a mechanism rather than work that depends on individuals.

Container platform operations, automated patching, releases that can be rolled back, and the monitoring and register work that keeps systems in a state where patches can be applied. Our role is to prepare the preconditions that make a product effective, before product selection.

How should we operate so we can keep up, rather than what should we install to be safe. If you want to design that together, please get in touch.

References

This article is based on information public as of October 28, 2026. Assessment of the vulnerability and the response plan differ by environment. Decide actual action after checking the vendor's primary information and your own configuration.

  • PHP
  • Vulnerability response
  • Patch management
  • Container operations

Was this article useful?

Talk to us about operations for this topic.

Contact