Act nowVulnerabilities

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 changed

How 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

  1. 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.
  2. 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.
  3. 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 containing PHPSESSID or PHP_SESSION_UPLOAD_PROGRESS fields, upload filenames containing <?php, unusually long Set-Cookie: PHPSESSID values, 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
  4. 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.
  5. 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_handler to php_binary or php_serialize and then switches it to php at runtime with ini_set() before session_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, set session.upload_progress.enabled=0 until 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.
  6. 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.
  7. 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

  1. Find where PHP runs. Start with systems that face the internet, and do not limit the search to old versions.
  2. Update to a fixed version: 8.5.12, 8.4.27, 8.3.36 or 8.2.35.
  3. 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.
  4. If you cannot update or apply the steps quickly, the NCSC suggests considering taking the system offline.
  5. 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.

Keep reading

More stories on the same topic or from the same area.

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

    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.

    Newsletter · every Friday · free

    Get the weekly security briefing

    One email every Friday: what to act on now and what to plan this week, in plain words. The free one-page runbooks come in your welcome email. You confirm your address first.

    Subscribe for free

    Press / to search from any page