Pular para o conteúdo
← Back to Skalablog

Published article

Patch PHP2Shell: how to check and update PHP now

Software Engineering

PHP2Shell describes two critical PHP vulnerabilities patched in October 2026. Update PHP to the fixed release, confirm the running version, and keep the site offline if you cannot patch. The rest is triage: which services depend on PHP, who owns each host, and how fast you can verify the fix landed.

What is PHP2Shell and why did sites go offline?

PHP2Shell is an informal name for two critical PHP vulnerabilities disclosed in October 2026 that allow remote code execution without authentication on affected servers. PHP is the server-side scripting language that builds pages and talks to databases for a large share of the web, including most WordPress installs, so a flaw in the runtime reaches far beyond one application. Sites that went offline did so as a precaution while waiting for patches to land across many hosts.

The verified facts, as of 29 October 2026: two critical PHP vulnerabilities; public exploit code circulating before widespread patching; the PHP project issued fixes. Treat any site-specific outage as a claim to confirm against that site's own status page, not as proof of compromise.

The transcript's framing that 'half the internet is cooked' overstates what is confirmed. What is documented is a serious runtime vulnerability plus public proof-of-concept code, which together raise the odds of opportunistic exploitation. That is a reason to patch urgently. It is not evidence that a large fraction of the web was compromised.

Should you update PHP immediately or take the site offline?

Update PHP immediately if a patched release is available for your branch, because the vulnerability allows unauthenticated remote code execution. If you cannot patch within hours, removing the site from the public internet is the safer interim step. The PHP project's own guidance and your distribution's security advisories are the sources that define which versions are fixed.

Patch order matters more than patch speed alone. Authentication bypass and code execution flaws are most dangerous on internet-facing servers that accept untrusted input, so public login pages, comment forms and file uploads rank above internal tooling.

  1. Identify every host running PHP, including staging and forgotten subdomains.
  2. Record the exact PHP version each host runs.
  3. Apply the vendor or distribution patch for that version branch.
  4. Restart the PHP service or web server so the new binary loads.
  5. Re-check the version and re-test the login and upload paths.
  6. Only then restore any site you took offline.

Which sites and services were affected?

Several forums and gaming services reported maintenance, read-only mode or login trouble in the days after disclosure. The pattern is consistent with precautionary lockdowns rather than confirmed breaches. The transcript lists 4chan, Something Awful, Fur Affinity, DeviantArt, Steam login and purchase issues, and Japanese gaming titles including Granblue Fantasy, Shadowverse and Bandai Namco services.

Service status pages and the operators themselves are the sources that confirm an outage cause. A forum going read-only during a PHP patch window is expected behavior; a forum going read-only is not by itself evidence that its database leaked.

Anything with a database and a login form is a candidate for review. That covers forums, e-commerce checkouts, membership sites, and the administrative panels behind them. Prioritize the ones that store credentials or payment data.

How do you check whether your site runs a vulnerable PHP version?

Check the PHP version your web server actually executes, not the version your hosting dashboard advertises. A quick php -v on the command line or a temporary phpinfo() page behind authentication shows the runtime in use. Remove that page immediately afterward; a public phpinfo page leaks configuration detail to attackers.

Shared hosting complicates this because you often do not control the runtime. Ask the provider which PHP version your account uses and when the patched build will be deployed. If the answer is vague, moving the site to a host that can state the version is a reasonable fallback.

Managed WordPress platforms handle the runtime for you, which shifts the question from 'did I patch' to 'did my vendor patch, and can they show me the version.' Ask for that in writing.

Why one runtime flaw reaches so much of the web

PHP's reach is the reason a single runtime flaw becomes an internet-wide event. WordPress alone is estimated to power a large share of websites, and WordPress runs on PHP. When the runtime is affected, every application on top of it inherits the exposure until the binary is replaced.

The transcript's broader point about shared infrastructure is fair as an observation, though it is editorial framing rather than a measured finding. Consolidation around a few runtimes, CDNs and cloud providers means one flaw can affect many unrelated sites at once. That is an argument for knowing your dependency inventory, not for predicting collapse.

Concentration also shapes recovery. When many sites depend on the same runtime patch, the patch distribution itself becomes the bottleneck, and hosts that backport fixes quietly may protect users who never see an announcement.

Was this caused by AI-generated code?

No public evidence links the PHP2Shell vulnerabilities to AI-generated code, so that explanation in the transcript is speculation. The observable facts are two critical vulnerabilities, public exploit code, and a patch window measured in hours. Attribution of cause is a separate question from the response.

The claim that AI makes exploit discovery easier is plausible but unquantified here, and this article does not treat it as established. What is established is the operational lesson: assume exploit code is public before your patch window closes.

What should site owners do after patching?

After patching, verify the change landed, then look for signs of prior exploitation. Rotate credentials that were stored or transmitted through the affected server, review access logs for unexpected POST requests, and check for new files in upload directories. Confirming the fix is not the same as confirming the site was never touched.

Keep a short written record of the PHP version before and after the patch, the time it was applied, and who applied it. That record is what you will need if a customer, auditor or regulator asks what happened during the disclosure window.

FAQ

  • What is PHP2Shell? PHP2Shell is an informal name for two critical PHP vulnerabilities disclosed in October 2026 that allow unauthenticated remote code execution on affected servers. The PHP project issued fixes, and sites that could not patch in time went offline as a precaution.
  • Is the internet actually half broken? No verified evidence supports that figure. What is documented is a serious PHP runtime vulnerability with public exploit code, which led many sites to lock down while patching. Outage reports should be confirmed against each operator's own status page.
  • Does patching WordPress fix it? Not necessarily. The flaw sits in the PHP runtime underneath WordPress, so the server's PHP version must be updated or replaced. A CMS update alone leaves the runtime exposed.
  • What if my host will not tell me the PHP version? Ask in writing for the running PHP version and the date the patched build will be deployed. If the provider cannot answer, treating the site as unpatched and moving it is the safer choice.
  • Could AI-generated code have caused this? No public evidence connects these vulnerabilities to AI-generated code. The measurable facts are the vulnerabilities, the public exploit code, and the speed of the patch response.

Source video