Critical PHP flaws: update now
PHP released fixes on 21 Oct 2026 for two critical bugs that can allow remote code execution without a login. Here is who is affected and what to do.
Updated 13 Nov 2026: see what changedHow urgent
Act now
Who is affected
Anyone whose website or app runs on PHP, in any version
What to do
Update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, and ask your host which version you run
Published 21 Oct 2026 · Sources last checked 13 Nov 2026No. 4 / 168
Updates, follow-ups and corrections
- Update · 13 Nov 2026. PHP2Shell is now being used against Check Point Security Gateways. Check Point Research reports exploitation from 30 October to 4 November of unpatched, internet-facing gateways through the Mobile Access portal, chained with a local privilege escalation in Gaia (CVE-2026-123039, CVSS 7.8) to get root and persistence with web shells and a backdoor called TSGA. Check Point says fixes were available from 23 October, a week before the attacks, and are in its November Jumbo Hotfix, and that only a couple of dozen unpatched systems in a single region were compromised. The Hacker News adds that the attackers moved on to a VMware ESXi host and ran a wiper, and that a second wave on 2 November hit organizations in several countries; we read that in the press report, not in Check Point's own post. CVE-2026-123039 is not in CISA's known exploited vulnerabilities catalog today. If you run Check Point gateways with Mobile Access, install the November Jumbo Hotfix.
- Update · 29 Oct 2026. A Linux kernel flaw is now listed as exploited, and press reports tie it to PHP2Shell. On 28 Oct CISA added CVE-2026-46300 (Linux kernel, missing variable initialization) to its Known Exploited Vulnerabilities catalog, which means it counts it as used in attacks. Press coverage (SecurityOnline, citing CISA) says attackers chain it with the PHP flaws: PHP2Shell gets them into the web server and the kernel bug turns that into root access. We read CISA's entry, which names the kernel flaw and not the chain, so the link to PHP2Shell is from press only. The reported kernel fixes are 5.10.257, 5.15.208, 6.1.174, 6.6.141, 6.12.91, 6.18.33, 7.0.10 and 7.1, through your Linux distribution. If you run PHP on your own Linux server, update both PHP and the kernel, and treat a server that was unpatched since 17 Oct as possibly compromised.
- Update · 29 Oct 2026. The attacks are now confirmed by the US government. On 26 Oct CISA added both PHP2Shell flaws (CVE-2026-109618 and CVE-2026-109619) to its Known Exploited Vulnerabilities catalog and gave federal agencies three days to fix them (TechCrunch, watchTowr). Earlier updates here said neither flaw was listed; that has changed. CISA did not say who is behind the attacks. Press reports (The Hacker News) add that a researcher confirmed working code execution on honeypot systems on 24 Oct, and that one vendor, CYFIRMA, suspects a North Korea-linked scanning campaign; we have not verified either claim at the source. What to check if your server was exposed since 17 Oct: Datadog says a successful attack may not crash PHP or change the page response, so look instead for a web server or PHP process starting a shell (
sh,bash) or a download tool, multipart uploads containingPHPSESSIDorPHP_SESSION_UPLOAD_PROGRESSfields, upload filenames containing<?php, unusually longSet-Cookie: PHPSESSIDvalues, and bursts of "Allowed memory size exhausted" errors in the PHP log. If you find any of these, treat the server as compromised: isolate it, rotate every secret it held, and rebuild from a clean image. Updating PHP and restarting the workers is still the fix. One-minute video version of this update: https://youtube.com/shorts/XPk4OGPh_So - Update · 23 Oct 2026. The flaws may also expose secrets. SecurityWeek reports that the two flaws can also be used to read sensitive memory of the PHP process, and that memory may hold credentials, API keys and other secrets. PHP's maintainers say every PHP setup that handles web requests is potentially at risk (PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed), and the flaws reach back to nearly all releases, to PHP 5.4. Several security firms (Amazon, Hadrian, Patchstack, Cloudflare and Vega, which saw a public proof of concept in use) report exploitation attempts, mostly through PHP's session upload-progress path, and watchTowr says none of the attempts it saw had succeeded. Governments are urging immediate patching. Our precaution, not a confirmed case: after you update, consider rotating the database passwords and API keys stored on any server that ran an affected PHP and faced the internet. Updating PHP is still the real fix.
- Update · 23 Oct 2026. A third PHP issue, CVE-2026-115560, is unpatched but unlikely to affect you. PHP.net published an informational advisory today: the risk exists only if an app sets
session.serialize_handlertophp_binaryorphp_serializeand then switches it tophpat runtime withini_set()beforesession_start(), with session upload progress still enabled. The fix will come in the regular release, with a full advisory then. Keep the 21 Oct updates as your main action. As an extra step, setsession.upload_progress.enabled=0until the next bugfix release. If you already did that for CVE-2026-109619, you are covered. Apps that never change the serialize handler at runtime can leave it enabled. - Update · 22 Oct 2026. Attacks have started. Tenable reports that Amazon Threat Intelligence saw a first attempt on 17 Oct, four days before the fixes were published, and recommends investigating from that date. Cloudflare says it is seeing early attacks, and watchTowr reports attempts against both flaws. None of the sources we read confirms a successful break-in, and neither flaw is on CISA's exploited list yet. Updating is still the only complete fix. After updating, restart all PHP workers. If a server could not be updated, restrict its internet access, and look for new web shells, unexpected scheduled tasks and new accounts tied to PHP processes. The PHP team's settings, such as turning off
session.upload_progress.enabled, reduce exposure but are not a full fix. Old versions (8.1 and older) still have no official patch: ask your vendor for a backport or upgrade. - Update · 22 Oct 2026. Wider impact, but no confirmed break-ins yet. According to Tenable's FAQ, the security firm Calif says it confirmed unauthenticated remote code execution against specific versions of WordPress, Drupal, Joomla and Magento, so check your CMS and host, not only PHP itself. Estimates of exposed servers range from about 1.3 million potentially vulnerable hosts to more than 1.9 million running PHP. Exploit code is circulating, though Tenable has not verified that it works, and Amazon says it is unclear whether its latest observed attempts would have succeeded against real systems. We found no source confirming a compromised server, and as of 21 Oct 21:03 UTC neither CVE was on CISA's exploited list. Cloudflare has turned on rules for known attack paths for all customers, including the free plan, and calls them a stopgap: updating PHP is still the real fix.
We keep the original text. When something changes, when we follow a story, or when we get something wrong, we add a dated note here instead of editing silently.
Watch the short video
The video loads from YouTube (privacy-enhanced mode) only when you press play.
What happened
On 21 October 2026 the PHP project released security updates for two critical vulnerabilitiesVulnerability A weakness in software, a setting or a process that an attacker could use to get in or do harm. Tap again to open the glossary, CVE-2026-109618 and CVE-2026-109619. Under certain conditions, both can let an attacker run code on a web server without logging in. The PHP project rates both 9.2 out of 10 on the CVSSCVSS score A number from 0 to 10 that rates how serious a flaw is in general. From 9.0 up it is called Critical. Tap again to open the glossary v4.0 scale.
The UK National Cyber Security Centre (NCSC) describes them in simple terms. In the first, an attacker can push PHP into running out of memory, and PHP then mishandles half-prepared data when it cleans up after the request. In the second, information from one request can stay in use after its memory was freed, so a later request handled by the same worker can pick it up.
Who is affected
The NCSC says any version of PHP may be affected. It urges organisations on older, unsupported versions to move to a supported release.
- PHP 8.1 and older no longer receive project updates. The PHP project published minimal fixes for 7.4, 8.0 and 8.1 for people who build from source. Otherwise, ask your vendor for a fix or upgrade.
- PHP 8.2 reaches end of life on 31 December 2026.
- Many products include PHP. Watch for updates from their vendors.
What to do
- Find where PHP runs. Start with systems that face the internet, and do not limit the search to old versions.
- Update to a fixed version: 8.5.12, 8.4.27, 8.3.36 or 8.2.35.
- Apply the extra hardeningHardening Tightening the settings of a server, app or device so it offers fewer ways in: switching off what you do not use and choosing the safer option where there is one. Tap again to open the glossary steps the PHP team published. They reduce exposure but do not make an installation safe. The update is the full fix.
- If you cannot update or apply the steps quickly, the NCSC suggests considering taking the system offline.
- If you cannot update or disable a system straight away, check it for signs of compromise and backdoors, with help from an incident responseIncident response What you do from the moment you suspect an attack: contain it, find out what happened, fix it, recover, tell who must be told and learn from it. Tap again to open the glossary provider if needed.
If you build with AI tools
Our advice, not from the sources: if an AI tool or a template generated your website or back end, check what it runs on. Your hosting panel or your developer can tell you whether PHP is involved and which version. If you are not sure, ask and keep the answer in your records.
Terms explained in this article
- CVE: A public ID number, like CVE-2026-12345, given to one specific security flaw so everyone can talk about the same bug.
- RCE (remote code execution): A flaw that lets an attacker run their own code on your server or device from a distance.
Related news
Other stories that belong to this case file: The NSA Network Outage: A Patch Gone Wrong? What We Know (Case File) / PHP Explained: 30 Years of History, and Why It Just Became a Security Emergency.
PHP ships security releases 8.5.13, 8.4.28, 8.3.37 and 8.2.36 with several critical flaws: update, because some can lead to code execution
On 19 November 2026 the PHP project released security updates for its four supported branches. GitHub advisories for php-src list at least six flaws rated Critical, including use-after-free bugs that can lead to remote code execution, PHP-FPM request smuggling and a session-file flaw. PHP warned the worst need non-default or uncommon setups. PHP 8.2 reaches end of life on 31 December 2026.
The NSA network outage and PHP patching: what the NSA said, what the director said, and how a small team can patch without breaking things
On 17 November 2026 the NSA's classified internal network had problems. The agency spoke of temporary degradation during routine maintenance. The Director of National Intelligence linked it to patching after a PHP vulnerability; the NSA has not said that itself. What each source said, what we do not know, and six steps to patch with a plan.
Two outages in 24 hours, no hackers: what Microsoft and the FAA say happened, and what a small business can do
On 12 November Microsoft 365 email went down for about a day, and on 13 November the FAA stopped every departing US flight for more than four hours. Both organizations say it was not a cyberattack. What each says caused it, where the sources differ, and six steps for a small business.
Keep reading
More stories on the same topic or from the same area.
- WhatsApp will force iPhone users on old iOS versions to update because malware can infect them just by visiting a website: update iOS now, and sign back in if WhatsApp logs you outAct now 30 Nov 2026
- Optimizely Web scripts were hijacked to serve a card skimmer and iOS exploit kits on 178 organizations' sites: what to check if you load third-party scriptsAct now 17 Nov 2026
- Official Q-Dir and DesktopOK installers were tampered with to install a hidden remote access trojan: check your hash, a reinstall is not enoughPlan this week 27 Nov 2026
Check your PHP version
Type the version your site runs (for example 8.3.30). It runs in your browser; nothing is sent anywhere.
Comments
No account needed. Add a nickname if you like, or leave it empty to comment anonymously. Comments are reviewed before they appear. Links are not allowed.
We store your comment, your nickname and a scrambled form of your connection that we use only to limit spam. We do not store your IP address or set cookies. Cloudflare Turnstile checks that you are not a bot.
Sources and verification
- UK NCSC: Critical security issue affecting PHP (21 Oct 2026) (opens in a new tab)
- PHP.net: October 2026 security release (21 Oct 2026) (opens in a new tab)
- PHP advisory GHSA-w8hw-w9fx-j79w (CVE-2026-109618) (opens in a new tab)
- PHP advisory GHSA-6wmf-4rv5-p3rp (CVE-2026-109619) (opens in a new tab)
- Tenable: PHP2Shell (CVE-2026-109618, CVE-2026-109619) FAQ, citing Amazon Threat Intelligence and Cloudflare (22 Oct 2026) (opens in a new tab)
- watchTowr: PHP remote code execution, PHP2Shell (Oct 2026) (opens in a new tab)
- The Hacker News: PHP issues emergency patches as exploit attempts emerge (Oct 2026, press report) (opens in a new tab)
- SecurityWeek: PHP2Shell patches land as first exploitation attempts hit sensors (22 Oct 2026, press report) (opens in a new tab)
- CISA: Known Exploited Vulnerabilities catalog, entry CVE-2026-46300 (Linux kernel), added 28 Oct 2026 (opens in a new tab)
- SecurityOnline: CISA adds Linux kernel flaw chained with PHP2Shell and VMware ESX bug to KEV (29 Oct 2026, press report) (opens in a new tab)
- TechCrunch: US government says hackers are now exploiting critical PHP web bugs (27 Oct 2026, press report) (opens in a new tab)
- Datadog Security Labs: PHP2Shell detection, analysis and remediation (23 Oct 2026) (opens in a new tab)
- The Hacker News: CISA confirms active exploitation of two PHP2Shell flaws (Oct 2026, press report) (opens in a new tab)
- Check Point Blog: Security Advisory, Active Exploitation of PHP2Shell and Local Privilege Escalation (read 13 Nov 2026) (opens in a new tab)
- The Hacker News: Hackers Exploit PHP2Shell Flaws in Check Point Gateways to Deploy TSGA Backdoor and Wipe ESXi Files (13 Nov 2026, press report; read 13 Nov 2026) (opens in a new tab)
We use primary sources first and say when we rely on a news report. Dates are the day we last checked each source.
Spotted a mistake? Email [email protected] and we will correct it and note the change.