PHP2Shell, Explained for CEOs: Is Your Website Exposed?

On 21 October 2026, PHP patched two critical flaws that attackers were already using. They sit in PHP itself, not in WordPress, Laravel or Symfony, so nearly every PHP website is concerned. Here is how to tell whether your company is exposed, without a tech team, and what to ask for.

Oct 23, 2026

Updated

Four different small buildings, a shop, an office, a house and a warehouse, all standing on the same concrete slab with a glowing crack through it, a toolbox with a patch plate and a magnifying glass over a date mark

PHP2Shell is a pair of critical flaws in PHP, the language that runs WordPress and a large share of business websites, that let an attacker run their own code on your server without logging in. PHP released fixes on 21 October 2026 (versions 8.2.35, 8.3.36, 8.4.27 and 8.5.12), released as an emergency after the details leaked the day before (PHP security advisory). Amazon saw the first attack attempt on 17 October, four days before the fix (AWS), and attacks have grown since (watchTowr). On 26 October, CISA added both flaws to its Known Exploited Vulnerabilities list, and France's CERT-FR reported exploitation attempts (CERTFR-2026-ALE-014). The flaw is in PHP itself, not in WordPress, Laravel or Symfony, so any unpatched PHP version, from 5.x to 8.5, is affected, whatever runs on top of it. This post is for the person who has to decide, not the person who patches: how to tell whether you are exposed, and what to ask for.


The short version: the engine, not the car

Think of PHP as the engine and WordPress, Laravel, Symfony, Drupal or Magento as the car body. Brands differ, the bodywork differs, but thousands of models share the same engine. PHP2Shell is a defect in the engine. It does not matter how well your car was built or how recently the body was repainted: if it has this engine and the engine has not been serviced since 21 October, it is exposed.

That is why this one is wider than the usual "WordPress plugin vulnerability". In the worst configuration, the attack works before your own application code even runs, so a well-written application does not protect you.

Should you be worried? Three questions

  1. Does anything we own run on PHP? Websites, shops, client portals, intranets, internal tools.
  2. Can it be reached from the internet? A public website, yes. An internal tool reachable only on the office network or through a VPN, much less.
  3. Has its PHP been updated since 21 October? If yes to 1 and 2 and you do not know the answer to 3, treat it as urgent.

How to tell if you run PHP, without a tech team

  • The software you bought or had built. WordPress, WooCommerce, Drupal, Joomla, Magento (Adobe Commerce), PrestaShop and Moodle all run on PHP. So do custom applications built with Laravel, Symfony, CodeIgniter, CakePHP or Yii: look for those names in the agency's quote, invoice or handover document.
  • The addresses. Page addresses ending in .php, or a login page at /wp-admin, mean PHP.
  • The hosting panel. If your host gives you cPanel, Plesk or a similar panel, look for a setting called "PHP version" or "MultiPHP". If it exists, you run PHP, and it shows which version.
  • The quick header check. Free online "HTTP header" checkers sometimes show a line like X-Powered-By: PHP/8.1.2. Many servers hide it, so not seeing it proves nothing.
  • Ask. The only answer that counts is the exact version, from whoever hosts or maintains the site.

Hosted platforms like Shopify, Squarespace or Salesforce are the vendor's job to patch. You only need to worry about what runs on a server that you, your host or your agency manage.

How to test for PHP2Shell in two minutes

The only reliable test is the PHP version actually installed. If you (or your developer) have SSH access to the server:

# 1. PHP version on the command line
php -v

# 2. Installed packages: a distribution can patch without changing the main version number
dpkg -l | grep -i php     # Debian, Ubuntu
rpm -qa | grep -i php     # Red Hat, AlmaLinux, Rocky, CloudLinux

# 3. From outside: does PHP announce itself in the headers?
curl -sI https://www.your-site.com | grep -i x-powered-by

How to read it:

  • 8.2.35, 8.3.36, 8.4.27, 8.5.12 or later: fixed, as long as PHP was restarted after the update.
  • A lower number on 8.2 to 8.5: vulnerable, update now.
  • 7.x, 8.0 or 8.1: vulnerable, unless your distribution or a support vendor shipped a patched package. Ask for the patch reference in writing.

Two traps. The command-line PHP is not always the one serving the site: on shared hosting or with several versions installed, trust the version shown in the hosting panel for that site. And an "old" number from CloudLinux, Debian or Red Hat can still be patched, because those vendors backport the fix without changing the version: their security bulletin is what counts.

Scanners. Searchlight Cyber published an open-source scanner that tests a site from outside. It sends about 29 MB of deliberately aggressive probes per path and can flag a patched server by mistake. Run it only on servers you own, never on someone else's site, and confirm with the installed version. The "PHP2Shell labs" you will come across (OffSec, HackerDNA) are training environments for security researchers: they tell you nothing about your site.

On shared hosting, PHP belongs to the host, so the host installs the fix. Your part is to make sure the site is set to a supported version (8.2 or later) in the control panel, and to get the patch date from support in writing. A site left on PHP 7.4 in the version selector stays exposed even at a fully patched host.

When was your tool built? A rough way to date your exposure

If nobody can tell you the version today, the date the tool was built gives you a first idea, because a tool that was never upgraded still runs the PHP of its birth year. This is an estimate, not a diagnosis: a maintained tool will be newer.

Built or last upgradedProbable PHP versionAffected?Is there a fix?
Before 20125.3 or olderProbably: CERT-FR lists every 5.x versionUnsupported for over 10 years: replace it anyway
2012 to 20155.4 to 5.6YesNo fix. Upgrade to PHP 8.2 or later
2016 to 20197.0 to 7.3YesNo fix. Upgrade to PHP 8.2 or later
End of 2019 to 20227.4, 8.0 or 8.1YesNo new release. A minimal source fix from PHP (compile it yourself), patched packages from some distributions or support vendors, otherwise upgrade
December 2022 onwards8.2 to 8.5Yes, until updatedYes: 8.2.35, 8.3.36, 8.4.27, 8.5.12 or later (8.2 loses support after 31 December 2026)

PHP release dates for reference: 5.4 in March 2012, 7.0 in December 2015, 7.4 in November 2019, 8.0 in November 2020, 8.1 in November 2021, 8.2 in December 2022, 8.3 in November 2023, 8.4 in November 2024, 8.5 in November 2025.

The uncomfortable row is the fourth one. A lot of business software was built between 2019 and 2022 and has not been touched since. PHP 8.1 stopped receiving fixes on 31 December 2025, so for those tools there is no simple "click update": someone has to upgrade them. We wrote about planning that upgrade (in French) before this flaw made it urgent.

The last row hides a second trap. PHP 8.2 leaves security support on 31 December 2026 (official schedule). Updating to 8.2.35 today protects you from PHP2Shell for about eight weeks: the next flaw will not be fixed. If you are touching it anyway, aim for PHP 8.4 (supported to the end of 2028) or 8.5 (end of 2029).

What needs to happen

  1. Update PHP to 8.2.35, 8.3.36, 8.4.27, 8.5.12 or later, and restart PHP. An update that is installed but not restarted protects nothing.
  2. On PHP 7.4, 8.0 or 8.1: get a patched package from your Linux distribution or a support vendor, compile the minimal fix PHP published, or upgrade. On anything older, only an upgrade works. PHP says no configuration change fully protects you.
  3. If it cannot be done this week: take the site off the public internet, or restrict who can reach it. As a stopgap only, Cloudflare pushed filtering rules to all its customers, free plan included, and AWS published equivalent rules. Your provider can also turn off a PHP feature the attacks use (session.upload_progress.enabled=0, then restart PHP). None of these replace the update.

Keep that setting off after the update too. On 23 October, PHP disclosed a third flaw in the same feature (CVE-2026-115560). It is harder to exploit, because it needs a specific configuration, and its fix will ship with the next regular release. Until then, PHP recommends leaving session.upload_progress disabled unless your application needs it.

Managed WordPress hosts have very likely patched already. Ask them to confirm in writing anyway.

How to know if you were hit

You will not see it on the website: the point of this attack is to stay quiet. Ask your host or developer to:

  • Search the web server logs back to 17 October, not 21, for requests containing PHP_SESSION_UPLOAD_PROGRESS. That is the marker AWS published.
  • Look for changes on the server: files modified since 17 October that nobody deployed, unknown processes, new admin accounts in the site's back office.
  • Watch the side effects: your host warning about abuse or unusual traffic, the site redirecting visitors elsewhere, emails sent from your domain that you did not send.

A clean result does not prove nothing happened. If a site was unpatched, public and accepting uploads between 17 October and its update, the cautious move is to change the passwords and API keys stored on that server: database, payment provider, email sending, cloud accounts.

A message you can send today

Hello, following the PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619), can you confirm for each of our sites and tools: 1) the exact PHP version in production, 2) the date it was updated to a fixed version (8.2.35, 8.3.36, 8.4.27, 8.5.12 or later) and whether PHP was restarted, 3) whether the logs since 17 October show requests containing PHP_SESSION_UPLOAD_PROGRESS. If a site runs PHP 8.1 or older, what do you propose and by when? Thank you.

Where we fit

Our own products run on Go and Python, so PHP2Shell does not touch them. For yours:

  • The code audit, $2,900 fixed: we list what runs where, which versions, what is exposed to the internet, and the order of work, upgrade path included. You keep the report whether or not we do the work.
  • The upgrade or takeover when a tool is stuck on an old PHP or Symfony and nobody maintains it any more, at a day rate of about $930, priced by the audit before we start.
  • Maintenance from about $470 a month: we follow the security advisories, apply the fixes and keep PHP on a supported version, so the next flaw is fixed in hours, not weeks.
  • For a US team that wants one integration or fix done first, the $1,900 starter is a fixed-price way to try us.

What we are not: an incident response firm. If you find signs of an intrusion, call your host and a specialist incident responder first. We come in afterwards, to rebuild cleanly and keep it current.

Related: what the CISA KEV list means for your software, Node2Shell and Node.js 20 end of life, Windows Server 2016 end of life, .NET 8 end of life, and our security page.