{"id":50558,"date":"2026-10-26T13:58:26","date_gmt":"2026-10-26T08:28:26","guid":{"rendered":"https:\/\/www.cybernx.com\/php2shell-how-to-check-patch-and-respond\/"},"modified":"2026-10-26T13:58:26","modified_gmt":"2026-10-26T08:28:26","slug":"php2shell-how-to-check-patch-and-respond","status":"publish","type":"post","link":"https:\/\/www.cybernx.com\/en-us\/php2shell-how-to-check-patch-and-respond\/","title":{"rendered":"PHP2Shell: How to Check, Patch and Respond Today"},"content":{"rendered":"<p>On Oct 21, 2026, the PHP project released emergency fixes for two critical flaws, CVE-2026-109618 and CVE-2026-109619. Researchers call the pair PHP2Shell. Both score 9.2 out of 10 for severity.<\/p>\n<p>The flaws are present in the PHP runtime, so a site with secure code is still exposed. An attacker needs no login, and therefore, a crafted request can corrupt server memory and let the attacker run code on your server.<\/p>\n<p>Every common way of serving PHP is affected, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The flaws reach back to PHP 5.4.<\/p>\n<p>As is often seen, attackers moved before many defenders could. For example, Amazon Threat Intelligence recorded an exploitation attempt on Oct 17, four days before the fix. Similarly, Cloudflare reported early attacks and added firewall rules as a stopgap. Government and police sites across the UK and Europe went offline as a precaution.<\/p>\n\t\t<div data-elementor-type=\"container\" data-elementor-id=\"37742\" class=\"elementor elementor-37742 elementor-21871\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t<div class=\"elementor-element elementor-element-aefb284 e-flex e-con-boxed e-con e-parent\" data-id=\"aefb284\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6159271 toc-list elementor-toc--minimized-on-desktop elementor-widget elementor-widget-table-of-contents\" data-id=\"6159271\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;headings_by_tags&quot;:[&quot;h2&quot;],&quot;exclude_headings_by_selector&quot;:[],&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;marker_view&quot;:&quot;bullets&quot;,&quot;minimized_on&quot;:&quot;desktop&quot;,&quot;icon&quot;:{&quot;value&quot;:&quot;fas fa-circle&quot;,&quot;library&quot;:&quot;fa-solid&quot;,&quot;rendered_tag&quot;:&quot;&lt;svg class=\\&quot;e-font-icon-svg e-fas-circle\\&quot; viewBox=\\&quot;0 0 512 512\\&quot; xmlns=\\&quot;http:\\\/\\\/www.w3.org\\\/2000\\\/svg\\&quot;&gt;&lt;path d=\\&quot;M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z\\&quot;&gt;&lt;\\\/path&gt;&lt;\\\/svg&gt;&quot;},&quot;minimize_box&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-widget_type=\"table-of-contents.default\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__header\">\n\t\t\t\t\t\t<div class=\"elementor-toc__header-title\">\n\t\t\t\tTable of Contents\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--expand\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__6159271\" aria-expanded=\"true\" aria-label=\"Open table of contents\"><svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-chevron-down\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\"><\/path><\/svg><\/div>\n\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--collapse\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__6159271\" aria-expanded=\"true\" aria-label=\"Close table of contents\"><svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-chevron-up\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z\"><\/path><\/svg><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<div id=\"elementor-toc__6159271\" class=\"elementor-toc__body\">\n\t\t\t<div class=\"elementor-toc__spinner-container\">\n\t\t\t\t<svg class=\"elementor-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading\" aria-hidden=\"true\" viewBox=\"0 0 1000 1000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z\"><\/path><\/svg>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0b48bef elementor-widget elementor-widget-html\" data-id=\"0b48bef\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<style>\ndiv#elementor-toc__6159271{\n    border-style: solid;\nborder-style: solid;\n border-width: 1px 1px 1px 1px;\n border-top-width: 1px;\n border-right-width: 1px;\n border-bottom-width: 1px;\n  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.11) !important;\n}\na.elementor-toc__list-item-text{\n    color: #475467\n !important;\n}\n\n.elementor-widget-table-of-contents .elementor-toc__list-item a:hover {\n    border-left: 5px solid #C93132;\n    padding-left: 10px;\n    font-weight: 700;\n}\n.toc-list .elementor-toc__body .elementor-toc__list-item-text.elementor-item-active {\n    color: #475467 !important;\n    border-left: 0px solid #C93132 !important;\n    padding-left: 0px !important;\n    font-weight: 400 !important;\n}\n<\/style>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\n<h2><strong>Who is at risk?<\/strong><\/h2>\n<p>Anyone who runs PHP on a web server is at risk. PHP powers about 70% of websites whose server-side language is known. That includes WordPress, Drupal and Magento sites, plus many hosting control panels. Appliances and applications can also bundle their own PHP, so you may run it without knowing.<\/p>\n<p>The damage goes beyond a defaced page. The US National Security Agency says these flaws often give attackers a direct path to a server&#8217;s file system or database. One flaw can also:<\/p>\n<ul>\n<li>Leak server memory, which can hold secrets such as passwords and API keys.<\/li>\n<li>Attackers can also use a hacked server to hide their own attacks or mine cryptocurrency at your cost.<\/li>\n<\/ul>\n<p>If you use shared hosting, you may not know who updates PHP for you. Make sure to ask your host.<\/p>\n<h2><strong>What to do today?<\/strong><\/h2>\n<p>Work through these steps in order because every hour counts.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-50380 size-full\" src=\"https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/5-steps-to-secure-your-php-servers.webp\" alt=\"5\u00a0Steps to Secure Your PHP Servers\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/5-steps-to-secure-your-php-servers.webp 1920w, https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/5-steps-to-secure-your-php-servers-300x169.webp 300w, https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/5-steps-to-secure-your-php-servers-1024x576.webp 1024w, https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/5-steps-to-secure-your-php-servers-768x432.webp 768w, https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/5-steps-to-secure-your-php-servers-1536x864.webp 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h3><strong>Step 1: Find every PHP you run\u00a0<\/strong><\/h3>\n<p>List every server, container and application that runs PHP. Start with anything facing the internet and include old test machines. Then check the products you buy. Ask each vendor whether their product bundles PHP and when they will finish patching. The Dutch National Cyber Security Centre has published a list of software with a PHP dependency that you can check against. If you own a small website and manage no servers, ask your developer or host if they have applied the PHP security fixes.<\/p>\n<h3><strong>Step 2: Update to a fixed version<\/strong><\/h3>\n<p>The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Updating WordPress or its plugins will not fix this. The update must happen on PHP itself, and WordPress automatic updates do not install it. Check your Linux vendor for patched packages. Some setups install PHP from separate repositories, so do not assume automatic updates cover it. After you update, restart long-running PHP processes. They keep running the old code until you do.<\/p>\n<h3><strong>Step 3: Deal with older versions\u00a0<\/strong><\/h3>\n<p>PHP 8.1 and older no longer get official updates. The PHP security team released minimal source backports for 7.4, 8.0 and 8.1 for teams that build from source or have no long-term support vendor. Some Linux vendors also ship their own backported fixes, so check yours. Treat all of these as a bridge and plan an upgrade to a supported version. Also note that PHP 8.2 security support ends on Dec 31, 2026.<\/p>\n<h3><strong>Step 4: If you cannot patch yet\u00a0<\/strong><\/h3>\n<p>The PHP team says no mitigation fully blocks these flaws. Updating is the only safe choice. If you cannot update right away, the US National Security Agency and the UK National Cyber Security Centre both advice taking the system offline. If that is not possible, put a web application firewall in front of it. Treat the firewall as a short-term bridge. Even Cloudflare\u2019s Chief Technology Officer, Dane Knecht, called its own rules a stopgap.<\/p>\n<h3><strong>Step 5: Check for damage and clean up\u00a0<\/strong><\/h3>\n<p>Assume an attacker may have reached you before the patch. The UK National Cyber Security Centre advises checking for compromise before your upgrade and looking for backdoors an attacker installed. Review your logs for memory-exhaustion errors, repeated HTTP 500 errors and PHP workers that crash or restart without cause. Watch for PHP processes that launch shell commands.<\/p>\n<p>Because the flaws can expose memory, we also recommend that you change passwords, keys and tokens your servers handled. Finally, watch for phishing emails that use this story as bait.<\/p>\n<h2><strong>Three checks beyond the patch\u00a0<\/strong><\/h2>\n<p>Patching closes this hole. These three checks prepare you for the next one.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-50379 size-full\" src=\"https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/3-checks-beyond-the-patch.webp\" alt=\"3 Checks Beyond the Patch\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/3-checks-beyond-the-patch.webp 1920w, https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/3-checks-beyond-the-patch-300x169.webp 300w, https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/3-checks-beyond-the-patch-1024x576.webp 1024w, https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/3-checks-beyond-the-patch-768x432.webp 768w, https:\/\/www.cybernx.com\/wp-content\/uploads\/2026\/10\/3-checks-beyond-the-patch-1536x864.webp 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h3><strong>Know what your applications run on\u00a0<\/strong><\/h3>\n<p>A well-tested application can still sit on a flawed runtime. PHP2Shell proved it. Many teams test their own code but never list the runtimes, frameworks and libraries underneath. Build that list for every internet-facing application. Without it, you will repeat Step 1 from scratch during every incident.<\/p>\n<h3><strong>Know who must act\u00a0<\/strong><\/h3>\n<p>Say an agency manages your website, a host runs the servers and a vendor maintains the application. When a flaw appears, your customers hold you responsible. For each system, write down who patches it, how fast they must act and who confirms the fix. An annual vendor questionnaire will not give you that answer.<\/p>\n<h3><strong>Measure your response time\u00a0<\/strong><\/h3>\n<p>Attackers tried this flaw four days before the public fix. A critical patch cannot wait for the next maintenance window. Time yourself. How long does it take to find vulnerable systems, protect them and confirm the fix? If the answer is days, set a target and work toward it.<\/p>\n<h2><strong>How can CyberNX help\u00a0<\/strong><\/h2>\n<p>PHP2Shell shows how fast a disclosed flaw becomes an attack. Patch first. Then check for damage and close the gaps in your asset list and vendor chain.<\/p>\n<p>At <a title=\"CyberNX\" href=\"https:\/\/www.cybernx.com\/en-us\/\">CyberNX<\/a>, we work alongside your team to find exposed systems and respond when something looks wrong. Our Security Operations Center can watch your internet-facing PHP systems 24\/7 for signs of compromise. Our vulnerability assessment and penetration testing service can confirm what an attacker can reach. Not sure where you stand? Talk to our team, and we will help you check your exposure today.<\/p>\n<h2><strong>FAQs\u00a0<\/strong><\/h2>\n<h3><strong>Is my WordPress site affected?\u00a0<\/strong><\/h3>\n<p>Yes, if its server runs PHP, and most WordPress servers do. The flaws sit in PHP, not in WordPress. Updating WordPress or its plugins will not fix them. Ask your host or developer to confirm that PHP is on a fixed version.<\/p>\n<h3><strong>How to check your PHP version?<\/strong><\/h3>\n<p>On a server you manage, run php -v. Many hosting dashboards also show the version. Compare it with the fixed releases in Step 2. The command line can use a different PHP than your website does, so check your web server settings as well.<\/p>\n<h3><strong>Is a firewall enough?\u00a0<\/strong><\/h3>\n<p>No. The PHP team says no mitigation fully blocks these flaws. A firewall buys you time. Patch as soon as you can.<\/p>\n<h3><strong>Does patching remove an attacker who is already inside?\u00a0<\/strong><\/h3>\n<p>No. A backdoor stays after the update. Check for signs of compromise, remove anything unexpected and change the passwords, keys and tokens your servers handled. If you find signs of an intrusion, call an incident response team.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On Oct 21, 2026, the PHP project released emergency fixes for two critical flaws, CVE-2026-109618 and CVE-2026-109619. Researchers call the [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":50559,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1443],"tags":[],"class_list":["post-50558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/posts\/50558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/comments?post=50558"}],"version-history":[{"count":0,"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/posts\/50558\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/media\/50559"}],"wp:attachment":[{"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/media?parent=50558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/categories?post=50558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cybernx.com\/en-us\/wp-json\/wp\/v2\/tags?post=50558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}