PHP2Shell: what OpenCart store owners should check now
On 21 October 2026 the PHP project published emergency releases for two critical flaws, CVE-2026-109618 and CVE-2026-109619, known as “php2shell”. Both are rated 9.2 on the CVSS v4.0 scale and can let an attacker run code on a web server without logging in. The fixed versions are PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. OpenCart runs on PHP, so a store on an older build is exposed unless its hosting or operating system vendor has applied a patch. Exploitation attempts were reported in the wild.
1. Find the PHP version your store really runs
Your hosting panel usually shows the PHP version per site. Check more than one place: the web server and the command line can use different versions, and subdomains, test copies and scheduled tasks (imports, cron jobs) may run on yet another one. If you create a phpinfo() file to look, delete it right after.
2. Compare it with the fixed versions
A site is safe from this problem when it runs one of the fixed releases or a package that your operating system vendor (Debian, Ubuntu, Red Hat and others) has patched. Vendors often keep the old version number and backport the fix, so read their security notice instead of looking at the number alone. Older branches such as 7.x, 8.0 and 8.1 are at the end of regular support: for them the realistic options are an upgrade or a vendor-backported package.
3. Shared or managed hosting: ask in writing
If you do not manage the server, send your provider one clear question: “Which PHP version does my site run, and has the fix for CVE-2026-109618 and CVE-2026-109619 been applied?” Keep the answer.
4. Update on a copy first
An update to a newer PHP can break older OpenCart versions and extensions. A safe order:
- Make a backup of the files and the database, and check that it can be restored.
- Set up a copy of the store and update PHP there.
- Test the home page, category and product pages, search, cart, checkout, the admin panel and scheduled imports.
- Update the live store at a quiet time, with a way back, then restart PHP and clear the opcode cache.
Check which PHP versions your OpenCart version and your extensions support before you choose the target version.
5. Look for signs of a break-in
If a server was exposed for days, patching alone is not enough. Look for:
- Unknown PHP files in image, cache and upload folders.
- Changed core files, or files with a recent date that nobody remembers editing.
- Unknown admin users or new scheduled tasks.
- Redirects, spam pages or unusual outgoing email.
If you find something, do not just delete it: keep a copy, close the way in and then clean up. This is where a written incident report helps.
6. Make the next update routine
Put PHP and operating system updates on a schedule, check that backups restore, remove extensions you do not use and watch the logs. A security update should be a normal Tuesday, not an emergency.
When to ask for help
If you want the version checked, the update tested on a copy or the server reviewed for signs of a break-in, see PHP update and server security. If you already see unknown files or redirects, start with virus and malware removal.