PrestaShop - PHP issue - PHP2Shell vulnerability – how to check if your PrestaShop store is secure

Data:

Aktualizacja:

Autor: 

Komentarze: (0)

Czas: 8 min


Prowadź blog również w swoim sklepie z pomocą naszego modułu PrestaShow SEO Blog


Information as of October 22, 2026

On October 21, 2026, patches were released for two critical vulnerabilities in PHP, the technology on which every PrestaShop store runs. The vulnerabilities were named PHP2Shell. Under certain conditions, they allow an attacker to compromise the server without logging into the store.

The good news: patches are already available, including for some older versions of PHP. Below, we explain what this means for your store and what you should check.

In short:

  • The vulnerabilities affect PHP, not PrestaShop itself. Having the latest version of the store does not guarantee a secure server.
  • The fix is implemented by your shared hosting provider, server administrator, or developer/DevOps specialist.
  • Do you have PHP 7.4, 8.0, or 8.1? You don’t need to upgrade right away—check if a backport update is available.
  • After updating PHP, make sure the store is actually using the patched version of PHP and test the store.

You’ll find details on this process below.

What is PHP2Shell and why does it affect your store?

PHP2Shell is the collective name for two vulnerabilities in PHP: CVE-2026-109618 and CVE-2026-109619. Under certain conditions, they allow an external attacker to execute their own code on the server with application privileges.

What can an attacker do?

It depends on the server’s configuration. In the worst-case scenario, they could gain access to:

  • the store’s files,
  • settings,
  • database access credentials.

This does not mean that every store has been or will be attacked. A vulnerable environment still requires an urgent update.

If your store is currently operating normally, that doesn’t mean anything yet

The vulnerability shows no visible symptoms. The store is running, orders are coming in, and there are no errors. The only way to be sure is to check whether the version of PHP used by the store has been patched.

The current version of PrestaShop does not protect against PHP2Shell

You may have the latest version of the store and all modules up to date, yet still be using a version of PHP that is vulnerable to attack.

You cannot fix this vulnerability by updating the store. The patch must be applied on the hosting or server side.

Who is responsible for updating PHP?

Server type
Who typically implements the fix
Shared hosting
Hosting provider
VPS or dedicated server
Administrator—check whether this is covered by your administration service

Tip: Ask specifically about PHP2Shell patches. The statement that “the store is up to date” says nothing about the status of PHP.

263118092.800w.png

Don’t have time? Want to get things done quickly?

If you need help—contact us

2156660147.800w.png

Which current PHP versions have the patch?

Patches are available for all currently supported PHP branches, and thanks to Plesk, also for older PHP versions.

NOTE! Support is available for PHP versions 8.2–8.5.

PHP 8.2–8.5: patched versions

PHP Branch
Version with patches
8.2
8.2.35
8.3
8.3.36
8.4
8.4.27
8.5
8.5.12

Before you decide to upgrade to a newer version of PHP, check which updates are available in your server’s control panel. Ask your provider to confirm that they address both vulnerabilities.

Older versions of PrestaShop and PHP 7.4, 8.0, and 8.1: You don’t have to update your store right away—though it’s worth doing!

An older version of PHP is often the result of limitations in the store, modules, or integrations.

If you stopped updating your store, modules, and server components at some point, you’re likely still using older versions of PHP.

Today, a hasty change to PHP on the server hosting your PrestaShop store could, for example, break the shopping cart, payments, the admin panel, or the entire store.

PHP BACKPORT

For example, Plesk has released patched PHP 7.4, 8.0, and 8.1 packages for Linux. This is known as a “backport,” which involves applying a security patch to an older version.

Note: The version numberalone can be misleading. With backports, the version number does not change. The patched installation may still report, for example, PHP 8.1.34. Whether the patch is in place is determined by the full package name and the compilation date.

Continuing with the example—Plesk confirms the patches in PHP builds 7.4.33, 8.0.30, and 8.1.34 dated October 21, 2026. However, hosting providers and Linux distributions may label packages differently. Always compare the result with the announcement from your server provider or confirm it with your developer or system administrator.

Manual patch for older PHP versions

It is also possible to apply a manual patch to an older version of PHP; however, this requires specialized programming and server administration knowledge.

Contact Form

Contact us—we’ll assess the situation and help you. In 90% of cases,we implement the fix on your server within 1 business day. You’ll receive a quote and instructions on how to start working with us after submitting the form.

Information on PHP Versions and Support

The image below shows, in order:

  1. Successive PrestaShop versions from 1.7 to 9.1 and the PHP versions supported by those PrestaShop versions.
  2. PHP versions and their official support—if a PHP version is no longer supported (e.g., 7.2), it no longer receives official security patches

Conclusion: It’s a good idea to update PrestaShop regularly and upgrade the PHP version on your server.

198533051.1200w.png

What to do? A 5-step plan

If you use shared hosting (FTP)—you’re partly dependent on your hosting provider. Check your server settings, and if you don’t find a secure PHP version there, contact your server administrator.

If you have a VPS, a dedicated server, or use cloud solutions—you should handle updates yourself.

  1. Check for available PHP updates in your server control panel or with your hosting provider. Look for clear labels indicating the vulnerability in question
  2. Ask your developer or server administrator about PHP2Shell patches and request confirmation that they address both vulnerabilities.
  3. Do you have an older version of PHP? Before upgrading PHP in your server settings (which can be risky for the stability of an older store), check if a backport is available for your PHP version.
  4. Consider testing PHP on the store’s development environment.
  5. After the update, verify that the store is using the patched PHP —details below.
  6. Test sales functionality: shopping cart, order, payment, and integrations.

What to check after the update?

1. Is the store actually using the new PHP version?

Multiple versions of PHP can run on a single server. The store’s domain, cron jobs, and hosting control panel may use different versions of PHP.

Therefore, check whether:

  • the store’s domain is running on the updated version of PHP,
  • the required service restarts have been performed.
2101524916.800w.png

Note: The `php -v `command in the terminal may display information about a different PHP installation than the one powering the website.

2. Does the checkout process in the store work without issues?

After making changes, follow the customer’s path:

  • adding a product to the cart,
  • placing a test order,
  • initiating payment,
  • check that key integrations (e.g., couriers, ERP, price comparison sites) are working.

Is your server not providing updates?

The absence of new packages doesn’t necessarily mean there are no updates. The cause is often a problem with the repository or the package signing key. In that case, the system uses old lists and doesn’t see new releases. Warnings, signature errors, or unclear messages must be clarified before you consider the server up to date.

If your hosting provider doesn’t offer support in this area, consult a specialist (such as us).

Cloudflare partially resolves the issue

Cloudflare rules will help, but they are no substitute for updates

Cloudflare has released protective rules for PHP2Shell, even on the free plan. This is an additional layer of security. However, it does not replace PHP updates.

Not sure how to check this? We’ll do it for you

Not sure which version of PHP your store is running? Not sure if the patch has already been installed? Have you tried installing the patch yourself or with your team, but the update ends in an error? Take advantage of our PrestaShop administration and technical support.

  • If you’re using a VPS, dedicated server, or cloud solution, we’ll apply the necessary PHP updates.
  • If you’re using shared hosting (FTP), we’ll check your control panel or contact your server administrator.

Once you send us a message via the contact form above, you’ll receive a secure PHP script that you can use to check PHP on your server yourself. The script will verify your PHP version and provide clear information on whether PHP is secure in your store:

3264429588.800w.png

You’ll also receive an offer from us for rapid PHP security hardening by our DevOps team. As part of the PHP update:

  • we’ll check your store’s environment,
  • we’ll select the appropriate updates,
  • we’ll verify that your store is functioning properly after implementation,
  • if there are no patches available for your version, we’ll determine an alternative security solution.

Please contact us, providing your store’s URL and hosting provider. If you know your PrestaShop and PHP versions, please include them—this will help us determine the scope of work more quickly.

Contact Form

If you’re already a client, open a ticket on the HelpDesk

+48 506 312 999

PHP2SHell

Does updating PrestaShop and its modules protect against PHP2Shell?
No. PHP2Shell refers to vulnerabilities in PHP, which is the environment that runs the store. Even the latest version of PrestaShop with the most recent modules can run on vulnerable PHP. The fix must be implemented by the hosting provider or the server administrator.
Do PHP 5.6 and 7.0–7.3 also require security patches?
Yes. These versions are also affected by the issue, and the PHP project no longer releases updates for them. However, some third-party providers, including CloudLinux, offer fixes. Ask your hosting provider for a backport that addresses both PHP2Shell vulnerabilities. Implementing it can help secure your environment without immediately upgrading PHP, but it does not replace a plan to update an outdated online store.
How can I check if my hosting provider has installed the PHP2Shell patches?
Request confirmation that both vulnerabilities—CVE-2026-109618 and CVE-2026-109619—have been fixed, and ask for the full version number of the patched package. The PHP version number alone may not be sufficient, as the backport may not change it. The administrator should also confirm the required service restarts and verify that the store’s domain is using a secure PHP installation.
Is Cloudflare enough to protect an online store from PHP2Shell?
No. Cloudflare's security rules can block detected attack attempts and mitigate risk, but they do not fix PHP vulnerabilities. Treat them as an additional layer of protection. The proper solution remains installing a patched version of PHP or a package with a backport that addresses both vulnerabilities.
Artur Dobrzyński
Artur Dobrzyński
PrestaShop Specialist · PrestaShow CEO · 14 years of experience with PrestaShop

I help stores solve problems, enter new markets, and automate and optimize their processes. On a daily basis, I’m responsible for managing relationships with clients and partners, as well as developing our system architecture. My hobbies include traveling, mountain biking, and photography, and my passions are environmental protection and agriculture—I’d love for everyone in the world to be able to grow their own fruits and vegetables for personal use :-)

Komentarze (0)
z 0

Brak komentarzy. Bądź pierwszy!