INCIDENT ANALYSIS

The critical PHP vulnerabilities (CVE-2026-109618 / 109619, "PHP2Shell"): affected versions, fixes, and what to do with a site you cannot update, explained for companies without IT staff

"The prime minister and IPA are calling for PHP fixes, but we have no idea whether our site is affected." "Our web agency says our version is too old and there is no fix." In late October 2026 we heard this a lot. This article explains what happened, which versions can be fixed, and what your options are when yours cannot, step by step (as of October 29, 2026).

Home›Blog›PHP2Shell: what to do
Published 2026-10-29 | Category: Incident analysis | HAYTECH SOLUTIONS
Key points
  • On October 21, 2026, two vulnerabilities in PHP itself were disclosed that can allow unauthenticated remote code execution. Both are rated CVSS v4.0 9.2. Every PHP setup that serves web requests (PHP-FPM, mod_php, php-cgi and so on) is affected.
  • The fixed releases are 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35. PHP 8.1 and older are end of life and have no official fix; the baseline is to move to a supported line.
  • On October 26 (US time), CISA added both to its Known Exploited Vulnerabilities (KEV) catalog. JPCERT/CC also reports public proof-of-concept code and observed exploitation attempts. "No traces" does not mean "not attacked."
  • For a site you cannot fix right away, do not leave it as is: apply interim measures such as a temporary shutdown or access restrictions, then decide between upgrading, converting to a static site, rebuilding or retiring it. IPA also asks you to review whether the site is still needed and whether you can fund and staff its upkeep.
Everything in this article was checked against public information from the PHP project, IPA, JPCERT/CC and CISA as of October 29, 2026. The situation is changing daily. Check the linked pages for the latest before acting.

What happened

The PHP Group pre-announced on October 20, 2026 that a critical security release would be published on October 21 at 14:00 UTC (23:00 Japan time), and published the security advisory the next day. It states that PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical vulnerabilities that can allow unauthenticated remote code execution, and that all PHP users are strongly encouraged to update immediately.

Both vulnerabilities sit inside the way PHP handles requests. Researchers call the combined attack "PHP2Shell."

CVEWhat it isSeverity
CVE-2026-109618Memory corruption through faulty handling of out-of-memory (OOM) errors, leading to remote code executionCVSS v4.0 9.2 (Critical)
CVE-2026-109619Stale internal request state left behind, likewise leading to remote code executionCVSS v4.0 9.2 (Critical)

What is affected is PHP itself, not a particular framework or CMS. Every configuration that serves web requests through PHP is included: PHP-FPM, Apache mod_php, php-cgi and others. The PHP behind a CMS such as WordPress, an e-commerce package or a contact form is no exception.

Is it being exploited?

Yes. On October 26, 2026 (US time), CISA added both to its Known Exploited Vulnerabilities (KEV) catalog (data). Hong Kong's HKCERT also issued its highest-level alert, stating that they are being exploited in the wild.

In its October 26 update, JPCERT/CC notes that many proof-of-concept exploits have been published and that multiple parties report observing exploitation attempts. It adds that even if none of the listed indicators are found, you cannot conclude that you were not attacked.Source: JPCERT/CC alert JPCERT-AT-2026-0033

IPA's alert (updated October 27) says it is not aware of any confirmed damage in Japan. That means no cases have been reported to IPA, not that none occurred.

What happened in Japan: a wave of precautionary shutdowns

Because the fix landed late at night Japan time, on the evening of October 21 the National Cybersecurity Office posted on X that if the patch cannot be applied quickly, temporarily taking websites offline is one effective way to reduce risk, and the prime minister posted to the same effect (news report).

Many local governments and companies did suspend public services as a precaution. Osaka City, for example, announced on October 22 that it had suspended services to apply security patches, and Shiga Prefecture identified 143 public web systems and reported 31 still suspended as of October 23. Both were precautionary shutdowns with no unauthorized access or data leak confirmed.

News reports also mention services that chose to shut down for good because they could not respond, and concern that old, unmaintained sites may be sitting unpatched without any notice. If you are on shared hosting, the hosting provider applies the PHP fix, so the first step for you is to check your provider's announcements.

Can your version be fixed? Status by release line

The biggest problem this time is old PHP with no fixed release. The PHP project says that PHP 8.1 and older no longer receive updates from the PHP project; some distributions and LTS vendors provide backported fixes, so contact your vendor or upgrade to a supported version.

PHP lineStatusFix
8.5SupportedUpdate to 8.5.12
8.4SupportedUpdate to 8.4.27
8.3SupportedUpdate to 8.3.36
8.2Security fixes only. Ends December 31, 2026Update to 8.2.35, then move to 8.3 or later within the year
8.1 / 8.0 / 7.4End of life (EOL)No official release. Only OS-vendor backports or the minimal source patches published by the PHP security team. The baseline is to upgrade to 8.3 or later
7.3 and older, 5.xEnd of life (EOL)Practically no way to fix. Choose between upgrading, converting to static, rebuilding or retiring

For PHP 8.2, the 8.2.35 release note states that PHP 8.2 reaches end of life on December 31, 2026 and will receive no further security fixes after that, and asks users to plan an upgrade to a supported version. Updating to 8.2.35 now is not the end; one more upgrade is needed before the year is out.

If PHP was installed as an OS package (RHEL, Ubuntu, Debian and so on), the version number shown may stay old even though the OS vendor has backported the fix. In that case, check the OS vendor's security advisory and the package changelog. Do not judge "fixed" or "unfixed" from the number alone.

What to do, in order, if you have no IT staff

1. First, find out where PHP is running

IPA's advance notice also lists "take an inventory of where PHP is used in your programs and products" as the first action. Beyond your own website, the following are in scope.

  • Your corporate site, recruiting site, campaign sites and blog (WordPress and the like)
  • Sites run by your web agency or ad agency (everything published under your name)
  • Contact forms, booking, member pages, e-commerce and internal web tools
  • Sites on shared hosting (even an HTML-only site is affected if PHP is installed on the server)
  • Software products and network devices that bundle PHP (IPA advises checking the product vendor's information)
  • Old sites nobody looks after, and sites on contracts your predecessor signed that nobody manages

2. How to check the version

  • Shared hosting: the control panel usually has a "PHP version" setting. Also check the provider's announcements for how they handled this issue.
  • Sites maintained by an agency: ask in writing for the PHP version and the status of CVE-2026-109618 / 109619, including the version number after the update. The point is to get a number, not just "done."
  • Your own server: log in and run 「php -v」, or check through the OS package manager. Avoid placing a page that shows phpinfo() in a public directory; it exposes configuration details to the outside.

3. Apply the fix

If you are on a supported line, updating to the fixed release is the only reliable fix. The PHP project states that there are no complete mitigations; updating is the only safe choice. An update within the same minor line (for example 8.3.30 to 8.3.36) rarely causes compatibility problems, and on many hosting plans it is a single switch in the control panel.

4. When you cannot fix it right away

IPA's alert asks that systems which cannot be fixed immediately not be left running unprotected, and calls for interim measures and access restrictions suited to the environment. Where no effective interim measure is possible, it says to decide, based on the expected damage and business impact, whether to block external access or temporarily suspend the service.

MeasureRoleCaveat
Switch to a maintenance page, or limit access to office IPsInterim measure: makes PHP unreachable from outsideDecide the business impact while it is down. Reopening requires the fix
WAF, configuration changes, tighter monitoringInterim measure: reduces attacks but does not close the holeThe PHP project says there are no complete mitigations. Use with a deadline
Upgrade to a supported PHPPermanent fixA major upgrade needs testing of the CMS and plugins
Convert to a static site (HTML only)Permanent fix, suited to sites that rarely changeMove dynamic features such as forms and search to external services
RebuildPermanent fix: rebuild, replacing the old CMSCosts time and money. Run interim measures in parallel until migration
Retire (shut down)Permanent fix: the safest option for a site nobody usesPlan data migration and user notices first. Decide what happens to the domain
In the same alert, IPA asks organizations with hard-to-fix systems to review whether the system is really needed or can be replaced by another system or service, and to confirm that they can fund and staff ongoing maintenance. If not, moving to a maintained product, reducing features, or ending or retiring the service are all on the table. Whichever path you take, plan the data migration and alternatives for users first.Source: IPA: PHP vulnerability countermeasures (CVE-2026-109618, CVE-2026-109619: PHP2shell)

How to choose between static conversion, rebuilding and retiring a site you cannot update is covered in our separate article, "Three options for a site you cannot fix."

5. After updating, verify the version that is actually running

Do not close the task on a "we updated it" report alone. Check the version number running in production (the control panel on shared hosting, 「php -v」 or OS package information on your own server) and record it with the date. A line in a config file or a runbook is not evidence that the fix is applied.

6. Check for signs of compromise (before and after updating)

You may have been attacked between disclosure and your fix. JPCERT/CC's alert asks you to investigate for compromise alongside applying the fix, noting that no single detection rule can catch every attack. At a minimum, check the following.

  • Copy web-server and application logs to a separate place before updating and preserve them (updates can erase them)
  • Look for unfamiliar PHP files in public directories, or files whose modification date changed recently
  • Check for unexpected outbound connections from the server, suspicious processes, and unexpected successful logins to admin panels
  • If logs are kept only briefly (for example 30 days), accept that you cannot rule out compromise, and extend retention going forward
  • If a site that handles personal data may have been compromised, check with legal counsel or a specialist whether reporting and notification obligations under the personal data protection law apply

In its October 26 update, JPCERT/CC also advises setting 「session.upload_progress.enabled=0」 and restarting all workers as an interim measure until an additionally reported vulnerability (CVE-2026-115560) is fixed, noting that this also mitigates CVE-2026-109619. See the alert for details.

The lesson: nobody may warn you about the next one

This time, calls from the prime minister and IPA made many companies notice. But critical vulnerabilities are disclosed almost every week, and most never make the news. The list of "where our PHP runs" that you built this time is your asset register for the next one. See our "EOL inventory guide" for how to build the register and the "EOL calendar" for software reaching end of support.

If you have no IT staff, you can also outsource the whole cycle: inventory, matching against advisories, applying fixes and verifying afterwards. Our "vulnerability and EOL response" service starts with a free check that needs nothing more than your website URL.

Summary

  • CVE-2026-109618 / 109619 are flaws in PHP itself and affect every PHP setup that serves web requests. CISA has confirmed exploitation and added them to KEV
  • Fixed releases are 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35. PHP 8.1 and older have no official fix; move to a supported line. PHP 8.2 ends this year too
  • The order is: inventory, check versions, apply the fix, and if you cannot, apply interim measures and decide between upgrading, static conversion, rebuilding or retiring, then verify the running version and check for compromise
  • Record the version number running in production and the date, not just a "done" from your vendor
  • Turn the PHP list you built this time into an asset register for the next vulnerability
FREE CHECK

Let us find your unsupported software, free of charge

It’s fine to start from “we don’t know which versions run on which servers.” With our free IT inventory and vulnerability check, we hand you a list of end-of-life (EOL) software and the issues you should fix first.

Free consultation & inquiries

In a 30-minute online consultation, we’ll check together whether this article applies to your environment. A consultation alone is perfectly fine.

Contact us (free consultation)

You can also book a 30-minute online consultation with this form.

Please read our Privacy Policy before sending. We do not ask for your phone number.

Any IT question is welcome.
Feel free to get in touch.

Free 30-minute consultation ›Security maintenance details ›