Website Vulnerabilities because of PHP

PHP2Shell What Every Business Needs to Know and Do Right Now

On October 21, 2026, the team behind the PHP programming language released emergency security fixes for two critical flaws. Researchers nicknamed them PHP2Shell. If your website runs on PHP, this story is about you, even if you have never heard of PHP. This guide explains the problem in plain language, shows you how to check your PHP version, and walks you through what to do next, whether you run a small local business site or a large multi-server platform.

Everything here reflects what was publicly known as of October 28, 2026. This situation is still moving, so we link to the original sources throughout so you can see the latest updates yourself.

The Short Version

PHP2Shell is the name for two serious security bugs inside PHP itself. They are tracked as CVE-2026-109618 and CVE-2026-109619, and each carries a severity score of 9.2 out of 10. In the right conditions, an attacker who has no password and no account can send a specially crafted web request and run their own commands on your server.

The most important point is this. These bugs are not in WordPress, Drupal, Joomla, or any plugin. They live in the PHP engine underneath your website. That means updating your website software does not fix them. Only a fixed version of PHP fixes them, and in most cases your hosting company is the one who installs it.

The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. If your site runs PHP 8.1 or older, the PHP project no longer provides official updates, so you either need a fix from your hosting vendor or you need to move to a newer version.

What Is PHP2Shell?

PHP is a programming language that runs on web servers. When someone visits a page on your site, PHP is often the engine that builds that page. According to the researchers’ own site and a Cloudflare analysis, PHP powers roughly 70 percent of all websites. It sits underneath WordPress, Drupal, Joomla, Magento, Laravel, Moodle, MediaWiki, and countless custom business applications.

Two Flaws, One Nickname

The name PHP2Shell comes from the idea that a request sent to a website could end with an attacker holding a “shell,” which is a command line on your server. Both flaws involve how PHP handles memory when something goes wrong while it processes a web request.

The first flaw, CVE-2026-109618, involves running out of memory. When PHP runs out of memory in the middle of setting up a request, it can be left with data that is only partly prepared. During cleanup, PHP treats that half-finished data as if it were fine. That mistake can open a path to running attacker code, according to the Huntress analysis of the official advisory.

The second flaw, CVE-2026-109619, involves leftover information. PHP can keep pieces of data from one request after the memory behind them has been freed. If the same worker process handles a later request, PHP may touch that stale data. The researchers showed this can lead to leaked memory or to running code.

You do not need the technical details to act on this. What matters is the outcome. Researchers at Wiz Research, working with OpenAI’s Codex Security team and the security firm Calif, demonstrated attacks with no login against current WordPress, Drupal, and Joomla test installs. They also showed that an attacker could read private server memory, which can contain passwords, access tokens, API keys, and certificates.

Why This Is Different From a Plugin Bug

Most website security news is about one plugin or one theme. You update that plugin and you are safe. PHP2Shell does not work that way. The researchers point out that even a bare-bones “Hello World” page on an affected PHP version can be exposed, because the weakness is in the engine and not in your code.

How It Was Found and Why It Became Urgent

Wiz Research, OpenAI Codex Security, and Calif reported the flaws to the PHP team in August, according to the Recorded Future analysis. The plan was a quiet, coordinated release. On October 20, details leaked online before the fix was ready. PHP responded by moving up its release and publishing the fixes on October 21.

Patchstack reported that several organizations, including Dutch government login sites, took services offline as a precaution while waiting for the patch. You can read the timeline in the Patchstack alert or the PHP Foundation’s own account of the release.

Which PHP Versions Are Affected and Which Are Fixed

The researchers say affected releases go back to PHP 5.4, and nearly every version since then is affected by at least one of the issues. In plain terms, if you are on any PHP version that has not received the fix, assume you are exposed.

For the PHP versions the project still supports, the fixed releases are easy to remember. PHP 8.2 is fixed in 8.2.35. PHP 8.3 is fixed in 8.3.36. PHP 8.4 is fixed in 8.4.27. PHP 8.5 is fixed in 8.5.12. Any release number lower than these, within the same branch, is vulnerable unless your vendor has added the fix another way, which we explain later.

PHP 8.1 and anything older no longer gets official updates. The PHP security team published limited source-code backports for PHP 7.4, 8.0, and 8.1, meant as a last resort for people who build PHP themselves. Many hosting and Linux vendors backported the fix on their own. cPanel, for example, reports that its EasyApache 4 packages for PHP 7.4, 8.0, and 8.1 received the fix, while packages for PHP 7.3 and older did not. See cPanel’s official response.

The scale of the old-version problem is large. Qualys analyzed anonymized data from more than 10,000 customers and counted 156 million PHP installations with a known version. About 71 percent ran end-of-life versions, and about 28 percent ran a supported version that had a fix available but not yet applied. Only 199,000 were patched in the first 12 hours. These numbers describe Qualys customers, not the whole internet. See the full Qualys write-up.

There is one more date to know. According to the official PHP supported versions page, PHP 8.2 only receives security fixes until December 31, 2026. PHP 8.3 runs until the end of 2027, PHP 8.4 until the end of 2028, and PHP 8.5 until the end of 2029. If you are choosing a version to move to, aim for 8.4 or 8.5.

Is Anyone Actually Attacking Sites?

Yes, attackers are trying, but the picture is more nuanced than the headlines suggest.

Cloudflare’s chief technology officer reported early attack traffic, and Patchstack said hosting partners reported active exploitation incidents by the morning of October 21. Wordfence, which protects more than five million WordPress sites, said its firewall had blocked over 74,000 exploit and probing attempts. Those requests were built to do real damage. Wordfence’s attack analysis shows attackers trying to read configuration files such as .env and wp-config.php, which hold database passwords, and trying to plant a backdoor file named wp2s.php.

At the same time, Wordfence said it had not observed any confirmed compromises from these flaws when it published its report. Recorded Future noted that some public proof-of-concept code relies on theories later withdrawn, and that public evidence does not show how many attacks have succeeded. Sansec said an attack needs specific knowledge of the target server and specific conditions.

Do not panic, but do not wait. Attempts are real, tools are spreading, and the fix is available. Patch first and investigate second.

What This Means for Small Websites

If you run a small business site, such as a plumber, a dentist, a restaurant, or a local shop, you might think nobody would bother attacking you. That thinking does not hold up here. Attackers use automated tools that scan huge numbers of sites at once. They do not choose you personally. They find whatever answers.

A compromised small site can mean stolen contact-form data, scam pages hosted under your domain name, browser warnings, and lost search visibility. Search engines can drop or warn about hacked sites, which undoes the work you put into SEO. Cleaning up after a hack costs far more than checking a version number today.

The good news is that small sites on managed hosting often need to do very little. According to their own announcements, Kinsta, SiteGround, and WP Engine told customers no action was needed. GoDaddy said the same for its managed WordPress, web hosting, and Windows hosting, but told VPS customers they must update PHP themselves.

What This Means for Large Websites and Teams

For larger organizations, the challenge is not one server. It is finding every place PHP runs. PHP hides in surprising spots, so a proper response starts with an inventory.

Start with production web servers, and then look beyond them. Staging servers, internal tools, customer portals, container images, build servers, and outside vendor software that ships its own PHP can all be exposed. Huntress urged teams to inventory every PHP install, including the ones hiding inside vendor software. cPanel also warned teams to rebuild container images and to confirm that ARM servers received fixed builds, since some repositories published fixes for one architecture before the other.

Next, think about how PHP is run. PHP says every installation serving web requests is potentially at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed. The PHP project treats mod_php as highest risk, because an exploit exists where one unauthenticated request can trigger the attack before any application code runs. Patch those servers first, and give every system waiting for an update a named owner and a deadline.

Third, check your package sources. PHP warned that the volunteer-run Remi repository would not have updates immediately, and the official Docker php image received no fix for 8.1 and older. Confirm with your vendor, switch to supported packages, or build from source.

Fourth, plan for secrets. Researchers showed that memory can leak without any code execution, so passwords, tokens, and keys that passed through a vulnerable PHP process could in theory be exposed. This is our recommendation and not an official rule. For high-value systems, consider rotating database passwords, API keys, and signing keys after you patch, starting with anything that touches payments or customer records.

How to Check Your PHP Version: Step by Step

You have several ways to find your PHP version. Start with whichever one matches how your site is built. If one method fails, try another.

Method 1: Check Inside WordPress Admin

This is the easiest route if your site runs on WordPress, which most small business sites do. You do not need any technical access.

First, log in to your WordPress dashboard. Second, in the left menu, hover over Tools and click Site Health. Third, click the Info tab near the top of the page. Fourth, scroll down and click Server to expand that section. Fifth, find the line labeled PHP version. That number is what your site is running right now.

You can also click the Status tab on that page. WordPress shows a message such as “Your site is running an outdated version of PHP, which requires an update” if your version is old. The official WordPress Site Health documentation explains each screen. Treat the warning as a hint only, because a missing warning does not prove the PHP2Shell fix is installed.

Compare your number with the fixed releases. If you see 8.3.36 or higher on the 8.3 branch, for example, you are on a fixed release. If you see 8.3.35, do not panic yet, because your host may have added the fix without changing the number. Read the section about version numbers below before you decide.

Method 2: Check in cPanel

Many shared hosting plans use cPanel, and its look changes between versions, so we describe both layouts. cPanel’s own documentation is the best reference.

In newer cPanel versions, log in and open the Websites hub. The table lists each domain, and a PHP column shows the current version. You can also click a domain and check the PHP Version field on the Overview tab. cPanel documents this in its guide called Change Your Website’s PHP Version.

In the classic cPanel layout, log in and look under the Software section for MultiPHP Manager. Open it, and you will see a list of your domains with the PHP version each one uses. A domain marked “inherited” uses the server’s default version, which only your hosting provider can change. The MultiPHP Manager for cPanel documentation covers every option on that screen. Your host can turn this tool off, so if you cannot find it, contact support.

To change a version in the classic layout, tick the box next to your domain, choose a version from the PHP Version menu, and click Apply. If the version you want is missing, it is not installed on your server, and your host has to add it. If you want a second walkthrough with screenshots, the hosting.com knowledge base guide to MultiPHP is clear and beginner friendly.

One note for cPanel customers. cPanel says PHP2Shell is a flaw in PHP, not in cPanel itself. Fixed EasyApache 4 packages for PHP 8.2 through 8.5 were released on October 21, but your host must install them. So even after you see your version, ask your provider whether the server has been updated.

Method 3: Check in Other Content Management Systems

If you use Drupal, log in as an administrator and open the Status report page under Reports. It lists your PHP version near the top. If you use Joomla, log in to the administrator area, open the System menu, and choose System Information. The PHP version appears on that page. Menu names can shift slightly between releases, so if you do not see them, search the admin for “status” or “system information.”

If you use Magento or a custom application, ask your developer or hosting provider for the PHP version. Large platforms often have more than one server, so ask for the version on every one.

Method 4: Check Your Hosting Dashboard

Many hosts show the PHP version in their own control panel. Look for words such as PHP, PHP Manager, Select PHP Version, or Website Settings. Managed WordPress hosts usually put it on the site’s main page or under a Tools tab. Searching your host’s name plus “PHP2Shell” is a fast way to find their security notice, and the Meow Apps tracker collected status updates from many popular hosts.

Method 5: Check From the Command Line (Server Owners)

If you manage your own server, log in and run php -v. The command line version can differ from the version your website uses, as this cPanel community thread shows. A server can have several PHP versions installed at once, so check the version used by your web server or PHP-FPM service, and not just the one on your command line.

Why the Version Number Alone May Not Tell the Whole Story

Some hosts and Linux distributions fix the problem without changing the version number. They take the fix and apply it to the older release you already run. This practice is called backporting.

That means a site can show PHP 8.5.11 and still be protected. Hostinger and GoDaddy both told customers this. GoDaddy’s guidance says that on its web hosting, you should check the build date and not the version number. The reverse is also true. A new-looking number is not proof of safety if the server was never restarted after the update.

So how do you know? For shared and managed hosting, ask your host in writing. Server owners should check their vendor’s security notice or the package changelog for the CVE numbers. CloudLinux, for example, publishes a verification guide for checking installed PHP packages. Also restart your web server and PHP services after any update, because PHP keeps running the old code until it restarts.

What to Do Next Based on What You Find

Once you know your version and hosting type, your next step depends on who controls the server.

If You Use Managed or Shared Hosting

You do not install PHP yourself, so your action is to ask. Send your host a short, direct message. Something like this works well: “Hi, my site runs PHP version X. Has the fix for PHP2Shell, CVE-2026-109618 and CVE-2026-109619, been installed on my server? If not, when will it be?” Keep pushing for a clear answer. Hearing “we added firewall protection” is good news, but it is not the same as “PHP is updated.” Ask until you get a straight answer to the second question.

If You Run a VPS or Your Own Server

The update is your responsibility. Install the fixed PHP packages from your Linux vendor, your control panel, or the PHP project. Then restart Apache, PHP-FPM, and any other long-running PHP workers. If you use Docker, pulling the new image changes nothing until you recreate the containers. Do the same for staging and backup servers.

If You Are Running PHP 8.1 or Older

You have three choices. First, ask your vendor whether it has a backported fix, and get the answer in writing. Second, pay for extended support if you truly cannot move. cPanel customers can buy Extended Lifecycle Support for PHP. Third, and best, upgrade to a supported version. Even if you get a patch today, old versions will keep collecting new risks.

How to Upgrade PHP Safely

Begin with a full backup of your files and database. Next, update your CMS, plugins, and themes to their newest versions, because newer code is more likely to support the newer PHP. If you can, use a staging copy of your site to test the upgrade first. Many hosts offer one-click staging.

Then change the PHP version in your hosting dashboard or cPanel, as described above. Choose 8.4 or 8.5 if your software supports them, since they have the longest support windows. After the switch, click through your home page, contact form, checkout, login, and any booking tools. If something breaks, the PHP error log usually names the plugin at fault. If you cannot fix it quickly, switch back to the earlier version, replace the troublemaker, and try again. Going back should be a short pause and not a permanent plan.

Temporary Protection If You Cannot Patch Today

Upgrading PHP is the only complete fix. The PHP project and several security firms have published stopgap steps that reduce risk while you prepare. These steps are for people who control their server settings, such as VPS owners or hosting providers. If you are on shared hosting, ask your host to apply them, since cPanel notes that some of these settings cannot be reliably set from inside your own site.

The most widely recommended step is turning off session upload progress. Setting session.upload_progress.enabled to 0 in the main PHP configuration, then restarting PHP, closes a path used in known attack attempts. Huntress recommends this for end-of-life versions, and CloudLinux and GoDaddy suggest it as well. The setting can break progress bars on file upload forms, so test those. Do not rely on ini_set() or .user.ini files for this, according to cPanel. Every one of these steps is partial, and the researchers say plainly that none of them replaces the update.

PHP and the researchers list a few more steps. You can lower post_max_size to the smallest value your site needs, turn off display_errors in production, and on PHP 8.5 set fatal_error_backtraces to 0. Setting memory_limit to -1 is also suggested, but it hands memory problems to the operating system and can crash workers, so use operating system limits if you try it. Do not use RLIMIT_AS or RLIMIT_DATA.

A related note appeared on October 23. PHP published an advisory for a separate issue, CVE-2026-115560, in the session upload progress feature. It affects even patched releases such as 8.5.12 and will be fixed in PHP’s next regular release. The recommended protection is the same setting, session.upload_progress.enabled = 0. If you already turned it off, leave it that way.

How to Look for Signs of a Break-In

Patching closes the door. It does not tell you whether someone already walked through. If your site sat on an unpatched server between October 20 and the day your host fixed it, take a short look around.

Start with the obvious. Look for pages or posts you did not create, strange redirects, new admin users you do not recognize, a sudden flood of spam email from your domain, or warnings from your browser or Google. Check your hosting dashboard for unusual traffic spikes or a CPU spike with no explanation.

Next, look for suspicious files. Wordfence listed filenames seen in attacks, including wp2s.php, php2shell.php, and files that begin with axiom_. Use your host’s file manager, or ask your host to search for them, especially in the uploads, plugins, and themes folders. A security plugin scan can also help, although a clean scan does not prove a site is clean.

If you have access to server logs, developers can search for web requests that contain the words PHP_SESSION_UPLOAD_PROGRESS, which appeared in many of the observed attacks. Seeing those requests does not mean you were hacked, because most were blocked or failed. They simply show someone tried.

If you find something suspicious, take the site offline or into maintenance mode, contact your host, and call a security professional. Change your passwords from a clean device, including your hosting, database, WordPress admin, and FTP logins, and replace any API keys stored on the site. Restore from a backup made before the problem began, and then patch before going back online.

Frequently Asked Questions

My WordPress site is fully up to date. Am I safe?

Not necessarily. WordPress core, your plugins, and your theme are one layer. PHP is the layer underneath. PHP2Shell lives in that lower layer, so a WordPress update does nothing about it. Wordfence says it plainly: updating WordPress itself does not update PHP. Check your PHP version in WordPress under Tools, Site Health, Info, Server, then ask your host to confirm the fix is installed. If your managed WordPress host says it patched everything, you are likely fine, but save their message as proof.

My site shows PHP 8.3.35 (or a number lower than the fixed release). Am I vulnerable?

Maybe, maybe not. Some hosts and Linux vendors add the fix to the version you already run, so the number stays the same. GoDaddy and Hostinger both told customers their numbers might not change. The number is a clue, not the final answer. If it is lower than the fixed release for your branch, ask your host in writing whether the fix for CVE-2026-109618 and CVE-2026-109619 is installed. If you manage the server, check your vendor’s security notice or the package changelog. If you cannot get a clear yes, treat the site as unprotected.

Will a firewall, Cloudflare, or a security plugin protect me?

They help, but they do not replace the update. Cloudflare turned on default protection for free and paid WAF customers on October 21, and Wordfence blocked tens of thousands of attempts. Those are valuable extra layers. Still, Cloudflare tells customers to patch PHP anyway, and attackers changed their payloads to try to slip past filters. A security plugin also runs inside PHP, which is the thing at risk, so it cannot be your only defense.

I have a tiny site with no logins, no store, and no forms. Does it matter?

Yes. The researchers showed that even a basic “Hello World” page on a vulnerable PHP version can be exposed, because the weakness is in the engine and not in what your site does. Attackers also scan automatically, so size and fame do not protect you. Even a brochure site can be used to send spam, host scam pages, or attack other sites, which can get your domain blocked. Checking a version number takes five minutes. Cleaning up a hacked site can take days.

Who is responsible for fixing this, me or my host?

It depends on your plan. On shared hosting and managed WordPress hosting, the host controls PHP, so updating is their job and your job is to confirm it. On a VPS, dedicated server, or cloud server, the update is on you or your IT provider. GoDaddy, for example, told VPS customers to update PHP themselves while saying its managed products were already patched. If you are unsure, ask your host, “Do you manage PHP updates on my plan, or do I?” Then keep the reply.

What if I am on PHP 7.4, 8.0, or 8.1 and cannot upgrade right away?

You have options, but treat them as short-term. Ask your host or vendor whether they have backported the fix. cPanel’s EasyApache 4 did so for 7.4, 8.0, and 8.1, and other vendors including some Ubuntu, AlmaLinux, and paid extended-support providers also did. In the meantime, turn off session upload progress and ask your host about the other temporary steps in the PHP advisory. Meanwhile, plan the upgrade. Old versions no longer receive regular fixes, so each new PHP flaw adds risk that no one will patch. The Huntress team also suggests isolating end-of-life PHP from the public internet whenever you can.

Will upgrading PHP break my website?

It can, but you can lower the risk a lot. Problems usually come from old plugins, old themes, or custom code written for older PHP. Back up everything, update your plugins and themes, test on a staging copy, and then switch versions. Afterward, test your key pages and forms and watch the error log for a few days. If something breaks, roll back while you replace the problem plugin. A short period of testing is far cheaper than a breach. For a store or membership site, schedule the upgrade for a quiet time and keep a developer on standby.

Do I need to change my passwords and keys?

If your site ran on a vulnerable server and you see any sign of a problem, yes. Researchers showed that attackers could read private memory from PHP workers, and that memory can hold passwords, tokens, API keys, and certificates. There is no public proof that your specific secrets were taken, and Wordfence had not confirmed any compromises in its analysis. For stores, member areas, or anything with customer data, rotating database passwords, API keys, and admin passwords after patching is a sensible precaution. This is our advice and not an official requirement.

Does this affect Shopify, Wix, Squarespace, or other hosted website builders?

If a service runs the whole platform for you, you cannot see or change the PHP version, and fixing it is the provider’s job. We did not find statements from each of these providers while preparing this article, so we cannot tell you their status. Check the provider’s official status or security page, or contact support. Sites built on PHP applications such as WordPress, Drupal, Joomla, Magento, and Laravel are in scope, and so are custom PHP sites. If you are not sure what your site uses, ask whoever built it.

How often should I check my PHP version from now on?

Make it a habit. Check at least once a quarter, and again whenever you hear about a major PHP security release. Also watch the end-of-support date for your branch. PHP 8.2 stops getting security fixes on December 31, 2026, so if you are on it, you have about two months to plan a move to 8.4 or 8.5. Many hosts let you pick the version in a dashboard, so the upgrade takes minutes once you are ready. Signing up for your host’s status alerts helps you hear about problems quickly.

Your Action Plan in One Place

First, find your PHP version using WordPress Site Health, cPanel, your hosting dashboard, or your developer. Second, compare it to the fixed releases, which are 8.2.35, 8.3.36, 8.4.27, and 8.5.12, and remember that some vendors fix older numbers through backports. Third, ask your host a direct question and get the answer in writing. Fourth, if you control the server, install the fixed packages and restart every PHP service. Fifth, if you cannot patch today, turn off session upload progress. Sixth, move off PHP 8.1 and older, and aim for 8.4 or 8.5. Seventh, look for signs of a break-in, and rotate secrets on higher-risk sites.

This is a good moment to treat your website as a business asset that needs regular maintenance, just like your car or your office. A secure, fast, well-maintained site supports everything else you do online, including analytics and the rest of your digital marketing. If you want a hand reviewing your website setup or planning the next steps, you can reach out to Venerate Media Group.