{"id":19,"date":"2026-10-23T13:22:27","date_gmt":"2026-10-23T13:22:27","guid":{"rendered":"https:\/\/cyberscop.com\/blog\/?p=19"},"modified":"2026-10-23T13:29:02","modified_gmt":"2026-10-23T13:29:02","slug":"php2shell-php-vulnerability-explained","status":"publish","type":"post","link":"https:\/\/cyberscop.com\/blog\/php2shell-php-vulnerability-explained\/","title":{"rendered":"PHP2Shell Explained: The PHP Bug AI Found, and What It Means for You"},"content":{"rendered":"<p><strong>PHP2Shell is the name for two serious security bugs in PHP, the programming language behind most of the websites you use every day.<\/strong> The bugs let an attacker take control of a website&#8217;s server without needing a password. They sat unnoticed in PHP for more than 10 years, and they were only found in 2026 because security researchers used AI to dig through the code. Fixes came out on October 21, 2026. If you run a website, update PHP now. If you just use websites, you don&#8217;t need to panic, but stay alert for scam emails.<\/p>\n<p>Below, we explain everything in simple words: what happened, how the bug works, why governments switched their websites off, and exactly what you should do.<\/p>\n<h2>PHP2Shell at a glance<\/h2>\n<table>\n<thead>\n<tr>\n<th>Question<\/th>\n<th>Short answer<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>What is it?<\/td>\n<td>Two critical security bugs in PHP<\/td>\n<\/tr>\n<tr>\n<td>Official IDs<\/td>\n<td>CVE-2026-109618 and CVE-2026-109619<\/td>\n<\/tr>\n<tr>\n<td>How serious?<\/td>\n<td>9.2 out of 10, rated &#8220;critical&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Who is affected?<\/td>\n<td>Sites running PHP 5.4 or newer that haven&#8217;t been updated<\/td>\n<\/tr>\n<tr>\n<td>Safe versions<\/td>\n<td>PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12<\/td>\n<\/tr>\n<tr>\n<td>Who found it?<\/td>\n<td>Security researchers at Wiz and Calif, using advanced AI models including OpenAI&#8217;s<\/td>\n<\/tr>\n<tr>\n<td>Is it being attacked?<\/td>\n<td>Yes, attackers are trying it on a huge scale<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>What is PHP2Shell, in simple words?<\/h2>\n<p>Think of a website as a restaurant. You only see the dining room: the menu, the tables, the food that arrives. PHP is the kitchen at the back. It takes your order, gets things from the storeroom (the database) and puts your page together before it reaches your screen.<\/p>\n<p>PHP2Shell is a fault in how that kitchen is built. Because the fault is in PHP itself, not in one particular website, it affects every site using an unpatched version, from a small blog to a government portal. An attacker who knows the trick can walk into the kitchen without being invited and start giving orders. In computer terms, that means running their own code on the server.<\/p>\n<p>The &#8220;Shell&#8221; part of the name comes from hacker slang. Getting a &#8220;shell&#8221; on a server means you can type commands on it as if you were sitting in front of it.<\/p>\n<h2>What is PHP, and why does this bug affect so many websites?<\/h2>\n<p>PHP is a programming language that runs on web servers. It started in the 1990s as &#8220;Personal Home Page&#8221; and today officially stands for &#8220;PHP: Hypertext Preprocessor&#8221;. Online shops, blogs, news sites and government portals all use it, and so do popular platforms such as WordPress, Drupal, Joomla and Magento.<\/p>\n<p>That&#8217;s why you&#8217;ll see the &#8220;70%&#8221; figure in the news. PHP runs on roughly <a href=\"https:\/\/www.axios.com\/2026\/10\/22\/php-vulnerability-security-update-websites\" target=\"_blank\" rel=\"noopener\">70% of websites whose server-side language is known<\/a>. So a bug in PHP isn&#8217;t a problem for one company. It&#8217;s a problem for a big part of the web at the same time.<\/p>\n<h2>How does the PHP2Shell bug work?<\/h2>\n<p>You don&#8217;t need to be a programmer to understand the basic idea.<\/p>\n<ol>\n<li><strong>PHP sometimes hits a serious error<\/strong>, such as running out of memory. It&#8217;s supposed to stop safely when that happens.<\/li>\n<li><strong>The bug is in that &#8220;stop safely&#8221; part.<\/strong> An attacker can send specially crafted requests that push PHP into these errors on purpose.<\/li>\n<li><strong>At first, that only crashes things.<\/strong> The hard part, which took years to work out, was turning a crash into a way to run the attacker&#8217;s own commands.<\/li>\n<li><strong>Once that works, the attacker is in.<\/strong> They can change the website, install malware, steal data from the database or take the site offline. Researchers at Wiz also found that attackers could read passwords and other secret keys straight from the server&#8217;s memory.<\/li>\n<\/ol>\n<p>The worst part is that the attacker doesn&#8217;t need an account or a password. They only need to reach the website over the internet, like any normal visitor.<\/p>\n<h2>How did AI find a bug that people missed for over 10 years?<\/h2>\n<p>The bugs were always there. What was missing was someone patient enough to prove they could be used in a real attack. Wiz said that showing this <a href=\"https:\/\/www.npr.org\/2026\/10\/23\/g-s1-149503\/hacking-php-flaws\" target=\"_blank\" rel=\"noopener\">took &#8220;an exceptionally complex chain of steps, at the edge of what human researchers could practically achieve&#8221;<\/a>.<\/p>\n<p>That&#8217;s exactly the kind of long, boring, step-by-step work AI models are good at. They don&#8217;t get tired, and they can try thousands of small variations quickly. Security researchers at Calif, working with OpenAI, reported the first bug to PHP&#8217;s developers on August 11, 2026. Researchers at Wiz, a cybersecurity company owned by Google, reported the second on August 24.<\/p>\n<p>OpenAI said that <a href=\"https:\/\/www.axios.com\/2026\/10\/22\/php-vulnerability-security-update-websites\" target=\"_blank\" rel=\"noopener\">&#8220;to our knowledge, frontier AI found these vulnerabilities before attackers did&#8221;<\/a>. In other words, the good guys got there first, and PHP&#8217;s developers had about two months to build a fix before the news went public.<\/p>\n<h2>What happened, day by day?<\/h2>\n<table>\n<thead>\n<tr>\n<th>Date (2026)<\/th>\n<th>What happened<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>August 11<\/td>\n<td>Calif, working with OpenAI, reports the first bug to PHP&#8217;s developers.<\/td>\n<\/tr>\n<tr>\n<td>August 24<\/td>\n<td>Wiz reports the second bug.<\/td>\n<\/tr>\n<tr>\n<td>October 17<\/td>\n<td>Amazon&#8217;s security team spots someone trying to use the bugs against its trap servers, four days before the public announcement.<\/td>\n<\/tr>\n<tr>\n<td>October 20<\/td>\n<td>Details of the bugs leak online before the fixes are ready.<\/td>\n<\/tr>\n<tr>\n<td>October 21<\/td>\n<td>PHP&#8217;s developers release the security updates and tell everyone to install them immediately.<\/td>\n<\/tr>\n<tr>\n<td>October 21 to 23<\/td>\n<td>Governments and companies take websites offline to patch them, and attack attempts climb into the millions.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Is PHP2Shell being exploited right now?<\/h2>\n<p>Attackers are definitely trying. Matthew Prince, the head of Cloudflare, said his company saw <a href=\"https:\/\/www.npr.org\/2026\/10\/23\/g-s1-149503\/hacking-php-flaws\" target=\"_blank\" rel=\"noopener\">tens of thousands of attempts in the first 45 minutes<\/a>, and that the number had grown into the millions within two days.<\/p>\n<p>Someone even had a head start. Amazon <a href=\"https:\/\/www.techtimes.co.uk\/amazon-detects-php2shell-exploit-before-disclosure-1809341\" target=\"_blank\" rel=\"noopener\">detected an exploit attempt on October 17<\/a>, against a network of decoy servers it uses to catch attackers. That was four days before the bugs were made public, and nobody yet knows how that attacker found out early. Amazon said there&#8217;s no evidence of a leak from its own systems.<\/p>\n<p>Some people in the security world have started calling this wave &#8220;Black October&#8221;. The good news is that, so far, there are no confirmed reports of massive real-world damage. Many organizations patched quickly, and many others took their sites offline until they could.<\/p>\n<h2>Why did governments take their websites offline?<\/h2>\n<p>When a bug this serious goes public, it becomes a race. Attackers try to break in before website owners can install the fix. If you can&#8217;t patch in time, the safest move is to switch the site off for a few hours. The FBI <a href=\"https:\/\/www.cbsnews.com\/news\/php2shell-vulnerability-ai-security-flaw\/\" target=\"_blank\" rel=\"noopener\">encouraged organizations to do exactly that<\/a> if they couldn&#8217;t update straight away.<\/p>\n<p>Plenty of well-known organizations did. <a href=\"https:\/\/www.aljazeera.com\/news\/2026\/10\/22\/whats-the-php-coding-flaw-that-could-pull-down-70-percent-of-the-internet\" target=\"_blank\" rel=\"noopener\">According to Al Jazeera<\/a>:<\/p>\n<ul>\n<li>In the Netherlands, the national cybersecurity agency, the Port of Rotterdam, the football association and several hospitals took sites offline as a precaution.<\/li>\n<li>Finland&#8217;s state IT provider switched off government network services.<\/li>\n<li>France&#8217;s Interior Ministry put all its websites into maintenance mode.<\/li>\n<li>South Korea raised its cyber alert level and sent guidance to about 28,000 companies.<\/li>\n<li>Wikipedia took some of its systems down, and the Internet Archive briefly went offline.<\/li>\n<\/ul>\n<p>In Japan, Prime Minister Sanae Takaichi made an urgent request for everyone to take action. The US National Security Agency told organizations to stay on high alert for the coming weeks, and the UK&#8217;s National Cyber Security Centre asked them to update immediately.<\/p>\n<h2>Is my website affected?<\/h2>\n<p>Your website is at risk if all three of these are true:<\/p>\n<ol>\n<li>It runs on PHP. Most WordPress, WooCommerce, Drupal, Joomla and Magento sites do.<\/li>\n<li>Its PHP version is 5.4 or newer.<\/li>\n<li>It hasn&#8217;t been updated to one of the fixed versions: 8.2.35, 8.3.36, 8.4.27 or 8.5.12.<\/li>\n<\/ol>\n<p>Updating WordPress or your plugins does <strong>not<\/strong> fix PHP2Shell. The bug is in PHP itself, which runs underneath WordPress, so PHP is what needs updating.<\/p>\n<h3>How to check your PHP version<\/h3>\n<ul>\n<li><strong>WordPress:<\/strong> go to Tools, then Site Health, then the Info tab, and open the Server section. It shows your PHP version.<\/li>\n<li><strong>Shared hosting (cPanel or similar):<\/strong> look for &#8220;PHP version&#8221; or &#8220;Select PHP version&#8221; in your hosting dashboard.<\/li>\n<li><strong>Your own server:<\/strong> type <code>php -v<\/code> in the terminal. Remember that the version your website uses can be different from the command line, so check your web server settings too.<\/li>\n<\/ul>\n<h2>How to fix PHP2Shell: step by step<\/h2>\n<ol>\n<li><strong>Update PHP today.<\/strong> Move to 8.2.35, 8.3.36, 8.4.27 or 8.5.12, depending on which branch you use. The official downloads and instructions are on <a href=\"https:\/\/www.php.net\/\" target=\"_blank\" rel=\"noopener\">php.net<\/a>.<\/li>\n<li><strong>Still on PHP 8.1 or older?<\/strong> These versions no longer get official fixes. Upgrade to a supported version, or ask your hosting company or Linux provider whether they&#8217;ve released a patched build.<\/li>\n<li><strong>On managed hosting?<\/strong> Many hosts patch PHP for you. Don&#8217;t assume, though. Contact them and ask whether your server is already on a fixed version.<\/li>\n<li><strong>Can&#8217;t update right now?<\/strong> Take the site offline until you can. It&#8217;s what the FBI and many governments recommended.<\/li>\n<li><strong>Look for signs of a break-in.<\/strong> Check your server logs for strange requests, and look for unknown processes, new files or changed files.<\/li>\n<li><strong>Change your secrets if anything looks wrong.<\/strong> Because attackers may be able to read passwords from server memory, change your database passwords, API keys and admin passwords if you see anything suspicious.<\/li>\n<\/ol>\n<p>While you&#8217;re tidying up, you can also run our free <a href=\"https:\/\/cyberscop.com\/security-headers-checker\">Security Headers Checker<\/a> to see what your server tells visitors about itself, and our <a href=\"https:\/\/cyberscop.com\/ssl-checker\">SSL test<\/a> to make sure your certificate is in good shape.<\/p>\n<h2>I just browse websites. Should I be worried?<\/h2>\n<p>Not really, but stay alert. Simply visiting a website that runs PHP won&#8217;t infect your phone or computer. The risk is to the data you&#8217;ve given websites in the past, like your name, email address, home address or date of birth. If an unpatched site where you have an account gets broken into, that data could be stolen.<\/p>\n<p>Here&#8217;s what you can do:<\/p>\n<ul>\n<li>Expect more scam emails and texts over the next few weeks. Criminals often use big news stories as bait.<\/li>\n<li>Check any link you&#8217;re not sure about with our free <a href=\"https:\/\/cyberscop.com\/url-checker\">Suspicious URL Checker<\/a> before you open it.<\/li>\n<li>Use a different password for every account, ideally with a password manager.<\/li>\n<li>Turn on two-step verification for your email and bank accounts.<\/li>\n<li>If a website tells you it was affected, change your password there straight away.<\/li>\n<\/ul>\n<p>There&#8217;s no reason to stop shopping or browsing online. Just be a little more careful than usual.<\/p>\n<h2>What does PHP2Shell tell us about AI and cybersecurity?<\/h2>\n<p>PHP2Shell shows both sides of AI in security. This time, AI helped the defenders find a dangerous bug and get a fix ready before most criminals knew about it. But the same tools can help attackers find and use bugs faster too.<\/p>\n<p>Andr\u00e9s Guerrero-Saade of SentinelOne described the time between a fix being released and attackers using the bug as <a href=\"https:\/\/www.cbsnews.com\/news\/php2shell-vulnerability-ai-security-flaw\/\" target=\"_blank\" rel=\"noopener\">&#8220;the whole game essentially&#8221;<\/a>. The lesson for anyone running a website is simple: when a critical update comes out, waiting a week is no longer safe. Patching in hours, not days, is becoming the new normal.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>What is PHP2Shell?<\/h3>\n<p>PHP2Shell is the nickname for two critical security bugs in the PHP programming language. They can let an attacker run their own code on a website&#8217;s server without logging in.<\/p>\n<h3>What are the CVE numbers for PHP2Shell?<\/h3>\n<p>The two bugs are tracked as CVE-2026-109618 and CVE-2026-109619. Both are rated 9.2 out of 10, which counts as critical.<\/p>\n<h3>Which PHP versions are safe from PHP2Shell?<\/h3>\n<p>PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 include the fix. PHP 8.1 and older no longer get official updates, so you need to upgrade or get a patched build from your hosting or Linux provider.<\/p>\n<h3>Does PHP2Shell affect WordPress sites?<\/h3>\n<p>Yes, if the server runs an affected PHP version. Updating WordPress or its plugins doesn&#8217;t fix it. The PHP version on the server has to be updated.<\/p>\n<h3>Can visiting a website infect my computer with PHP2Shell?<\/h3>\n<p>No. The bug affects web servers, not visitors&#8217; devices. The risk for regular users is that personal data stored on an affected website could be stolen.<\/p>\n<h3>Who found the PHP2Shell bugs?<\/h3>\n<p>Security researchers at Wiz and Calif found them with the help of advanced AI models, including OpenAI&#8217;s, and reported them to PHP&#8217;s developers in August 2026, about two months before the fix was released.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP2Shell is the name for two serious security bugs in PHP, the programming language behind most of the websites you use every day. The bugs let an attacker take control of a website&#8217;s server without needing a password. They sat unnoticed in PHP for more than 10 years, and they were only found in 2026 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":27,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[17,19,15,14,16,18],"class_list":["post-19","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity","tag-ai","tag-patch","tag-php","tag-php2shell","tag-vulnerability","tag-website-security"],"_links":{"self":[{"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":1,"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":20,"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions\/20"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/media\/27"}],"wp:attachment":[{"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyberscop.com\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}