Dickson Business Computer Co. Limited

Home › Guides › PHP2Shell: what to check

Guide

PHP2Shell: What to Check and Patch Now

On 22 October 2026, HKCERT rated two PHP flaws, known as PHP2Shell, an extremely high risk: a remote attacker can use them to run code on the server, and HKCERT says they are being exploited. PHP runs more than three in four websites, including those built on WordPress, Joomla and Drupal, and it also sits inside the admin pages of some firewalls, NAS and other devices. If your business has a website or any of these devices, check them now.

Check today

  1. List everything that runs PHP. Your website and web applications first, especially those open to the internet. Then the admin pages of firewalls, NAS, storage and monitoring systems, which can run their own copy of PHP.
  2. Update PHP to a fixed version: 8.5.12, 8.4.27, 8.3.36 or 8.2.35. On shared hosting, ask your host which version your site runs and when it was patched.
  3. Update your devices. Vendors have issued their own fixes; HKCERT’s bulletin links the advisories from F5, Citrix, Palo Alto Networks, Juniper, Synology, QNAP, Cisco and WordPress.
  4. Upgrade anything on PHP 8.1 or older. The PHP project no longer fixes those versions. Upgrade, or ask your Linux or long-term support provider for a back-ported fix.
  5. Can’t patch yet? Take the system offline or cut it off from the internet until it’s fixed.
  6. Look for signs of a break-in. Check the logs and network traffic for unusual requests or code you didn’t install.

PHP 8.2 support ends on 31 December 2026

Even with this patch, PHP 8.2 gets security fixes only until 31 December 2026, according to the PHP project. From January, a site on PHP 8.2 or older gets no more fixes, so plan the move to PHP 8.3 or newer now. An upgrade can break old plugins and themes, so test the site on the new version first.

If you think you’ve been hacked

  • Cut the affected system off from the internet.
  • Keep the logs: copy them before anything on the server is wiped or rebuilt.
  • Change the passwords for the site, the hosting and the database, from a computer you trust.
  • Report it to HKCERT through its incident reporting form.

The full steps, from cleaning up to getting Google’s warning removed, are in website hacked? What to do first.

How we can help

We can find which of your systems run PHP, update or upgrade them, and check the logs for signs of a break-in, on websites, servers, NAS and firewalls. Call or WhatsApp Matthew on 9600 8234 with your website address or the systems you’re worried about. Every job is quoted first.

Common questions

What is PHP2Shell?

The name given to two critical PHP flaws, CVE-2026-109618 and CVE-2026-109619, fixed in October 2026. HKCERT rates them an extremely high risk and says they are being exploited.

Is my WordPress site affected?

If it runs on a PHP version older than the fixed ones, yes. WordPress runs on PHP, so ask your host or developer which version your site uses and whether it has been updated.

Our site is on shared hosting. Isn’t this the host’s job?

Many hosts update PHP on their servers, but check: ask which version your site runs and when it was patched. Plugins and themes are still yours to update.

Do firewalls and NAS really run PHP?

Some do, in their admin pages. HKCERT warns that the PHP inside a device can be a different version from the one on your servers, so check each vendor’s advisory.

Do we need to move off PHP 8.2?

Yes, before its security fixes end on 31 December 2026. Test the site on PHP 8.3 or newer first, because old plugins and themes can break.

Sources: HKCERT: PHP multiple vulnerabilities, 22 Oct 2026 · HKCERT: businesses must review and patch PHP systems · PHP: supported versions

Talk to Matthew

WhatsApp or call Matthew on 9600 8234 about your website, or email matthew.to@dbcomputer.hk. Tell us what you need and we’ll send a quote.

Address: Unit 503, 5/F, Tower 2, Lippo Centre, 89 Queensway, Admiralty, Hong Kong (office visits by appointment)
Office line: 2374 4400
Hours: Monday to Saturday, 9:00–17:30
Service area: all of Hong Kong

Send us your enquiry

Opens WhatsApp or your email app with your message ready to send; you can add a photo there. We only use your details to reply to your enquiry.

WhatsApp 9600 8234 📞 Call