PHP2Shell is being exploited. Updating WordPress plugins will not fix it

Two critical PHP flaws can let an unauthenticated attacker run code on a web server. Updating the application is not enough because the PHP runtime itself must be patched.
Hooded attacker reaching toward a PHP file beside a WordPress plugin update screen

Two critical PHP flaws can let an unauthenticated attacker run code on a web server. Fixed PHP releases are available, but website owners need to update the server runtime, not only the application running on it.

If your website runs on PHP, check the PHP version now.

The PHP project has released emergency fixes for two critical vulnerabilities that can allow an unauthenticated attacker to run code on a vulnerable server.

The flaws are tracked as CVE-2026-109618 and CVE-2026-109619. Together, they are known as PHP2Shell.

They affect the PHP runtime itself. That distinction matters.

Updating WordPress, Drupal, Magento, Laravel, a theme, or a plugin does not fix a vulnerable PHP installation. Your hosting provider or server administrator must update the PHP software serving the website.

AWS says it observed an exploitation attempt on 17 October 2026, four days before public disclosure. CERT-In says multiple reports confirm large-scale exploitation and advises users to patch urgently.

The key facts

  • The vulnerabilities can allow remote code execution without authentication.
  • The PHP project released fixes on 21 October 2026.
  • Fixed versions are PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35.
  • PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed are included in the warning.
  • The PHP project considers mod_php the highest-risk setup.
  • A firewall can reduce exposure, but patching PHP is the complete fix.
  • Administrators should review activity from at least 17 October 2026.

On 23 October, the PHP project published a separate follow-up about session upload progress in an unusual configuration involving session-serialization handler changes. It recommended temporarily disabling session.upload_progress.enabled for affected deployments until the next regular bug-fix release. That follow-up does not replace the emergency runtime update for PHP2Shell.

What PHP2Shell can do

PHP runs behind many websites and web applications.

It receives a request, processes data, runs application code, and produces a response. The new vulnerabilities affect how PHP handles memory while processing some HTTP requests.

An attacker can send a specially prepared request to a vulnerable server. If the attack succeeds, the attacker may be able to make the server run their code.

That can lead to:

  • stolen data;
  • changed website files;
  • malicious user accounts;
  • hidden backdoors;
  • malware or cryptomining software;
  • attacks against other systems connected to the server;
  • a complete website or server outage.

The attack does not always need to reach WordPress or another application first. PHP may process the dangerous part of the request before the application’s own security controls run.

This is why a secure plugin cannot solve the underlying flaw.

Which PHP versions contain the fix

Website owners should move to one of these versions or a later supported release:

PHP branch Fixed version
PHP 8.5 8.5.12
PHP 8.4 8.4.27
PHP 8.3 8.3.36
PHP 8.2 8.2.35

An earlier version within any of those branches does not contain the upstream fix.

PHP 8.1 and older releases no longer receive normal security support from the PHP project. Some operating-system or long-term-support vendors may provide their own backported fix.

If your host shows an older version, do not assume that the number alone proves it is unpatched. Ask whether the vendor has applied a supported PHP2Shell backport.

If it has not, move to a supported branch.

Why WordPress owners need to check the server

WordPress is written in PHP, but WordPress and PHP are separate layers.

Think of WordPress as the application and PHP as the engine that runs it.

A WordPress core update can fix a WordPress flaw. A plugin update can fix a flaw in that plugin. Neither one automatically replaces the PHP engine installed by the hosting provider.

The same rule applies to other PHP-based systems.

You can have the latest WordPress version, updated plugins, strong passwords, two-factor authentication, and a security plugin while the server still runs a vulnerable PHP release.

Those protections remain useful. They do not close PHP2Shell.

How to check your website

If you use managed hosting

Open the hosting control panel and look for the PHP version assigned to the website.

Then ask support a direct question:

Is the web-facing PHP runtime for my website patched against CVE-2026-109618 and CVE-2026-109619?

Ask for confirmation of the installed version or vendor backport.

Also ask whether the PHP service was restarted after the update. A new package does not help a worker process that is still running old code.

If you use WordPress

WordPress normally shows the server version under:

Tools > Site Health > Info > Server > PHP version

The menu may look different on some managed hosts.

Compare the reported number with the fixed-version table above. If the site uses an older PHP branch, ask the host whether it has supplied a backport.

If you manage the server

Check the PHP version used by the web server, not only the command line.

Running php -v shows the command-line version. A server can use a different PHP-FPM pool, Apache module, container image, or hosting package for web traffic.

Confirm the version through the web-service configuration and restart the relevant PHP workers or web server after applying the update.

A WAF helps, but it is not the patch

Cloudflare and AWS released web application firewall protections for PHP2Shell.

Those rules can block or limit some malicious requests. They are useful while an organisation deploys the PHP update and as another layer after patching.

They are not a complete repair.

The flaws sit inside PHP’s request processing. Attack methods can change, and a WAF must block dangerous traffic without breaking normal uploads and forms.

Cloudflare says it had to examine requests and responses to improve its protection. Both Cloudflare and AWS still tell customers to patch PHP. Do not delay the runtime update because a security service shows a new rule as enabled.

The exploitation started before the public warning

AWS says its threat-intelligence system recorded an exploitation attempt on 17 October.

The public fixes and disclosure arrived on 21 October.

AWS later saw proof-of-concept code and more attempts from multiple sources. It says PHP2Shell is now being broadly exploited.

This changes the investigation window.

An administrator who patched on 21 October should still review the earlier period. A server may have received a malicious request before the vulnerability became public.

AWS recommends starting from at least 17 October.

That does not mean every vulnerable server was compromised. It means attacks may have started before the patch appeared.

What administrators should review

AWS recommends looking for:

  • unusual POST requests involving file uploads;
  • requests containing PHP_SESSION_UPLOAD_PROGRESS;
  • unexpected processes started by the web-server account;
  • recently created or changed files that no authorised deployment created;
  • suspicious web-server or PHP errors;
  • new scheduled tasks, users, keys, or services;
  • outgoing connections that the application does not normally make.

The IP addresses listed in a threat report should not be the only test.

AWS says some addresses it observed belonged to shared anonymisation services. Seeing one of those addresses is a reason to investigate. It is not proof that a server was compromised.

Attackers can also move to different infrastructure.

Behaviour, file changes, process activity, and logs provide better context than one blocklist.

What to do if you cannot patch immediately

An internet-facing server that cannot be patched quickly remains exposed.

The safest temporary action may be to remove it from public access until the update is complete and checked.

If that is not possible:

  1. Enable the relevant managed WAF protections.
  2. Restrict multipart file uploads where the application does not need them.
  3. Keep upload and request-body limits as low as the application allows.
  4. Increase monitoring for unexpected files and processes.
  5. Prepare to isolate the host if suspicious activity appears.

Test any temporary upload restriction carefully. Contact forms, media uploads, document portals, checkout systems, and support tools may depend on multipart requests.

These steps reduce exposure. They do not replace the PHP update.

What to do if compromise is possible

Do not simply patch and continue using a server that shows signs of intrusion.

Patching closes the vulnerability. It does not remove an existing backdoor.

A proper response may include:

  1. isolating the affected server;
  2. preserving logs and system evidence;
  3. identifying changed files, processes, accounts, and credentials;
  4. rotating administrative, database, API, SSH, and hosting credentials;
  5. rebuilding from a known-clean image or backup;
  6. checking connected systems;
  7. assessing whether personal or customer data was exposed;
  8. following applicable incident-reporting and data-breach obligations.

Restore only from a backup created before the earliest suspected compromise. A recent backup can contain the same malicious files.

Why this vulnerability matters beyond PHP

AWS says working exploits appeared within hours of the public release. It also observed an attempt before disclosure.

The gap between a patch and widespread attack is becoming smaller.

Modern tooling can help defenders find vulnerabilities and prepare fixes. It can also help attackers compare code changes, understand the flaw, and create new attack variations faster.

For internet-facing systems, a seven-day or 30-day critical-patch target may now be too slow.

Organisations need to know which software faces the internet, who owns the update, how quickly it can be changed, and where logs are stored before the next emergency appears.

The lesson is simple: you cannot patch a PHP runtime you do not know you are running.

What site owners should do today

  1. Check the PHP version serving every public website.
  2. Confirm the PHP2Shell patch or vendor backport with the host.
  3. Restart the relevant web-facing services after the update.
  4. Keep WAF protection enabled as an additional layer.
  5. Review logs and server activity from 17 October onward.
  6. Investigate suspicious changes instead of assuming the patch removed them.
  7. Plan migration away from an unsupported PHP branch.

Sources

Disclosure: This article is based on vendor advisories and published security-provider telemetry. Wefiliates did not attempt exploitation or independently inspect a compromised server.

Sources

  1. PHP security advisory and fixed versions
  2. PHP downloads
  3. PHP supported versions
  4. PHP advisory for CVE-2026-109618
  5. CERT-In vulnerability note CIVN-2026-0510
  6. AWS exploitation timeline
  7. AWS mitigation guidance
  8. Cloudflare technical explanation and WAF response
Previous Article

Rabbit R1 in 2026: what the $199 AI device does after the hype

Next Article

India is closer to satellite internet, but Starlink is not live yet