A serious PHP security problem has put the technology behind millions of websites in the spotlight. Two critical vulnerabilities, nicknamed PHP2Shell, affect PHP itself (the software that runs a website's server-side code) rather than a single plugin, theme or content management system. PHP's maintainers released emergency patches on 21 October 2026 and urged every user to update straight away.
Researchers have shown that, on affected PHP versions, an unauthenticated attacker could potentially run code on a server or read sensitive information held in memory. The US Cybersecurity and Infrastructure Security Agency has published an alert urging immediate patching, and security firms report that attackers are already trying to exploit the flaws.
That sounds alarming, but it does not mean every PHP website has been hacked. It does mean website owners, developers and hosting providers should promptly check whether their systems are affected and apply the right PHP security update.
This matters most for businesses that rely on their website for enquiries, bookings or sales. Below we explain what the problem is, how to tell whether you're exposed, and the five steps to fix it safely. If you'd rather not handle updates like this yourself, take a look at our website care and maintenance service.
The PHP security problem at a glance
- What: two critical flaws in the PHP engine, CVE-2026-109618 and CVE-2026-109619, known as PHP2Shell.
- Risk: remote code execution without logging in, plus possible disclosure of server memory.
- Fixed versions: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, or a hosting/operating-system package with the fix backported.
- What to do: confirm which PHP version your live site runs, update it, test the site, then review your logs.
What is the PHP security problem?
PHP is a programming language commonly used to build and run websites. It sits behind many popular content management systems, including WordPress, and web applications, processing requests and helping deliver pages, forms, products and other features. Because it operates at the server level, a flaw in PHP can reach much further than a bug in one website plugin.
The newly reported PHP security issue has been given the name PHP2Shell and two vulnerability identifiers: CVE-2026-109618 and CVE-2026-109619. Published research describes memory-safety problems in PHP's handling of certain requests and errors. The researchers reported that these flaws could be chained to achieve remote code execution in tested environments, and also described a route to disclosing process memory.
In practical terms, remote code execution means an attacker may be able to make a vulnerable server run commands without first logging into the website. Memory disclosure means information held temporarily in the server process could be exposed. Depending on the system and the data present, that might include sensitive values. The precise risk depends on the PHP version, configuration and deployment, so avoid assuming that every installation is equally exposed.
The issue is in the PHP engine, not necessarily in the code written for your site. Updating a WordPress plugin or changing a page on your online shop is not a substitute for checking the PHP version your server uses.
Does this PHP security flaw mean my website has been hacked?
No. A vulnerability is a weakness that could be exploited; it is not proof that an attacker has accessed your site. Nor does news coverage alone tell you whether a particular server is affected.
To assess your own situation, first identify who manages the PHP installation. If you use managed hosting, the provider may administer PHP for you. If you run a virtual private server, dedicated server or self-managed cloud service, you or your technical team may be responsible. If you work with a web developer or IT provider, ask them to check the server rather than relying only on the website's dashboard.
Questions to ask your host or developer
- Which PHP version is currently running on the production website?
- Is that version affected by the PHP security advisory?
- Has the hosting provider applied a fixed release or a vendor-provided security backport?
- Are there other servers, staging sites, background workers or services running PHP?
- Can the provider confirm when the update was applied?
A version number by itself may not tell the whole story. Some operating-system and hosting vendors apply security fixes to packages while keeping a version label that looks older than the official release. Ask your provider to confirm that the PHP security fix is included, rather than judging solely by the number shown in a control panel.
How to fix the PHP security issue
The main fix is to install a PHP release or vendor package that includes the security patches for your system. PHP's maintainers and your hosting or operating-system vendor are the authoritative sources for the versions and packages that apply to you. The PHP team describes the issue as requiring urgent attention, and has released fixed versions for every supported branch.
A safe response usually follows these five steps.
1. Find out where PHP is running
Make a list of the live website, staging sites, admin tools, scheduled jobs and other services that rely on PHP. A business may have more than one installation, particularly if it runs several sites or uses separate servers for the website and the online shop.
If you don't administer the server yourself, contact your host or technical provider and ask them to check every relevant environment. A developer who only updates the site's theme may not have access to the server's PHP runtime.
2. Confirm the right PHP security update
Check the official PHP security announcement and the guidance from whoever supplies your PHP package. Managed hosting providers may install the update centrally; self-managed server operators may need to apply a package through their operating system or deployment process.
Don't pick an update based on a headline or an unverified social media post. Confirm the correct update path for your PHP branch, operating system and hosting setup. If you're on an unsupported or legacy PHP release, ask your provider what supported fix is available and whether the system needs upgrading or temporarily isolating. If your site is stuck on old PHP because its code won't run on anything newer, that's often the point where a website redesign costs less than keeping a fragile build alive.
3. Test and apply the update
Where possible, test the update on a staging copy before applying it to a business-critical site. Check essential functions after the change: pages load, forms submit, users can log in, and, if you run an online shop, the product catalogue, checkout and payment integrations still work.
Testing is not a reason to delay an emergency security response indefinitely. Coordinate promptly with your host or technical team, prioritising the public-facing systems that handle requests from the internet.
4. Verify that the live site is protected
After the update, ask the provider to confirm that the production server is running the fixed package. If you manage the system yourself, verify the runtime used by the web server; checking PHP on the command line doesn't always prove that the website is using the same installation.
Keep a record of each system checked, the update applied and when it was completed. This makes it easier to spot an overlooked environment and gives your team a clear audit trail.
5. Review for signs of suspicious activity
Patching fixes the vulnerability; it does not tell you whether a system was accessed before the patch. Follow your provider's incident guidance and review available server, security and application logs for unusual activity. Published research discusses indicators defenders may look for, but log patterns can be hard to interpret and are not, on their own, proof of compromise.
If you find evidence that an attacker may have accessed the server, involve a qualified security professional. Depending on your setup, the response may include preserving logs, rotating exposed passwords and keys, checking for unauthorised changes and restoring from known-good backups. Don't assume that applying the update automatically removes an attacker who may already have gained access.
What if I can't apply the PHP security update immediately?
Contact your hosting provider or security team urgently and ask what protective action is available while the update is prepared. A temporary security control may reduce exposure, but it isn't equivalent to installing the fix. Whether a mitigation applies depends on how your server is configured, and a change that blocks one attack path may not address the underlying vulnerability.
If you manage the server and can't apply a fix promptly, use the official advisory and your provider's instructions to decide on a sensible temporary response. For a critical public-facing system, that might mean limiting access or temporarily taking the service offline, but the right choice depends on your situation. Avoid improvising server changes without understanding their effect on your site.
What the PHP security problem means for an online shop
An ecommerce website does more than display pages. It may process customer accounts, orders, contact details and connections to payment or delivery services. That makes dependable server maintenance a core part of running an online business.
If you already run a shop, ask your hosting provider to check the PHP version serving the live storefront and any related services. Confirm the security update has been applied, then test the customer journey from browsing products through to checkout. If you use third-party payment processing, ask your technical provider whether any connected components also need attention.
If you're planning a new shop, use this incident as a reminder to ask prospective developers and hosts about maintenance, security updates, backups and who responds to urgent advisories. A site can look great and still be poorly maintained. Good ecommerce website design includes a clear plan for keeping the server software current, not just a polished storefront.
Building a new website with PHP security in mind
If you're thinking "I need a website", security doesn't have to make the project complicated. It means choosing a reputable hosting arrangement, knowing who is responsible for updates, and having a way to respond when important vulnerabilities are announced. Our web design services build that in from the start, and our web design best practices guide covers what else to look for.
Before launching, establish:
- Who manages PHP and the other server software?
- How will you be told about urgent security updates?
- Who applies updates, and how quickly?
- Are backups kept and periodically tested?
- Who should you contact if you suspect the site has been compromised?
These questions matter whether you need a small business website, a membership site or a full ecommerce website. The best arrangements are the ones where responsibilities are agreed before an emergency happens. Even our affordable web design packages come with that conversation up front.
The bottom line on the PHP security problem
The PHP2Shell reports describe serious vulnerabilities in the software that runs a huge share of websites, and researchers have demonstrated potentially severe impact on affected servers. That is a strong reason to act promptly, but not a reason to assume your site has already been breached.
Find out which PHP installation your website uses, confirm the PHP security fix has been applied, and verify the live system with your host or technical team. Then review the site and its logs, especially if anything looks suspicious.
Building a website is only the start. Keeping its underlying software supported and up to date is part of protecting your business and the people who use it. If you're not sure where your site stands, get in touch with our web design studio in Bolton and we'll help you find out.
